mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-16 23:00:20 +08:00
BREAKING - Fix unconstraint sizing in main axis
Summary: Introduce `overflow:scroll` so that scrolling can be implemented without the current overflow:visible hackiness. Currently we use AT_MOST to measure in the cross axis but not in the main axis. This was done to enable scrolling containers where children are not constraint in the main axis by their parent. This caused problems for non-scrolling containers though as it meant that their children cannot be measured correctly in the main axis. Introducing `overflow:scroll` fixes this. Reviewed By: astreet Differential Revision: D3855801 fbshipit-source-id: 6077b0bcb68fe5ddd4aa22926acab40ff4d83949
This commit is contained in:
committed by
Facebook Github Bot 5
parent
8eee79b5d1
commit
1f9c9ecb4b
@@ -26,6 +26,7 @@ public class ViewProps {
|
||||
// !!! Keep in sync with LAYOUT_ONLY_PROPS below
|
||||
public static final String ALIGN_ITEMS = "alignItems";
|
||||
public static final String ALIGN_SELF = "alignSelf";
|
||||
public static final String OVERFLOW = "overflow";
|
||||
public static final String BOTTOM = "bottom";
|
||||
public static final String COLLAPSABLE = "collapsable";
|
||||
public static final String FLEX = "flex";
|
||||
@@ -113,6 +114,7 @@ public class ViewProps {
|
||||
FLEX_DIRECTION,
|
||||
FLEX_WRAP,
|
||||
JUSTIFY_CONTENT,
|
||||
OVERFLOW,
|
||||
|
||||
/* position */
|
||||
POSITION,
|
||||
|
||||
Reference in New Issue
Block a user