Skip to content

Commit 59aada8

Browse files
ayc1facebook-github-bot
authored andcommittedSep 25, 2018
Remove overflow hidden killswitch
Summary: There hasn't been any reports of overflow issues since the last issue was fixed in v183 (July 30th). Let's remove this flag Reviewed By: yungsters Differential Revision: D10020006 fbshipit-source-id: 593c7d2c2bef5f0bd60d5de1941cd58f7fd6ccc7
1 parent 0a04bb7 commit 59aada8

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed
 

‎ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ public ReactRootView(Context context, AttributeSet attrs, int defStyle) {
112112
}
113113

114114
private void init() {
115-
if (!ViewProps.sDefaultOverflowHidden) {
116-
setClipChildren(false);
117-
}
115+
setClipChildren(false);
118116
}
119117

120118
@Override

‎ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewProps.java

-5
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@
1717
*/
1818
public class ViewProps {
1919

20-
/**
21-
* Kill switch to make overflow hidden by default. This flag will eventually be removed.
22-
*/
23-
public static boolean sDefaultOverflowHidden;
24-
2520
public static final String VIEW_CLASS_NAME = "RCTView";
2621

2722
// Layout only (only affect positions of children, causes no drawing)

‎ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,7 @@ public void onLayoutChange(
115115

116116
public ReactViewGroup(Context context) {
117117
super(context);
118-
// TODO: Remove this check after a couple public releases.
119-
if (!ViewProps.sDefaultOverflowHidden) {
120-
setClipChildren(false);
121-
}
118+
setClipChildren(false);
122119
mDrawingOrderHelper = new ViewGroupDrawingOrderHelper(this);
123120
}
124121

0 commit comments

Comments
 (0)
Please sign in to comment.