mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix overflow issue in root view
Summary: Set clipChildren to false by default in ReactRootView.java so that Overflow: visible/hidden will work for the root view. Moved sDefaultOverflowHidden from ReactViewGroup.java to ViewProps.java so that it can be used in both ReactViewGroup.java and ReactRootView.java. Reviewed By: mdvacca Differential Revision: D8727140 fbshipit-source-id: b593bed63e479cdbd22e4a025b936e6aeb28fc8c
This commit is contained in:
committed by
Facebook Github Bot
parent
d5465a9a0a
commit
9c71952f20
@@ -17,6 +17,11 @@ import java.util.HashSet;
|
||||
*/
|
||||
public class ViewProps {
|
||||
|
||||
/**
|
||||
* Kill switch to make overflow hidden by default. This flag will eventually be removed.
|
||||
*/
|
||||
public static boolean sDefaultOverflowHidden;
|
||||
|
||||
public static final String VIEW_CLASS_NAME = "RCTView";
|
||||
|
||||
// Layout only (only affect positions of children, causes no drawing)
|
||||
|
||||
Reference in New Issue
Block a user