BREAKING - Fix sizing of container with child overflowing parent
Summary: Fixes issue brought up in https://github.com/facebook/react-native/issues/10603 The gist of the problem is that in css it is fine for a child to overflow a parent if it feels the need to, we were not respecting this. Reviewed By: mmmulani Differential Revision: D4182141 fbshipit-source-id: c73fd15d2577ab846fc8a202d529d0e6e1207b75
This commit is contained in:
committed by
Facebook Github Bot
parent
2c8c2bffda
commit
0bcec80dfe
17
gentest/fixtures/YGSizeOverflowTest.html
Normal file
17
gentest/fixtures/YGSizeOverflowTest.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<div id="nested_overflowing_child" style="height: 100px; width: 100px;">
|
||||
<div>
|
||||
<div style="height: 200px; width: 200px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="nested_overflowing_child_in_constraint_parent" style="height: 100px; width: 100px;">
|
||||
<div style="height: 100px; width: 100px;">
|
||||
<div style="height: 200px; width: 200px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="parent_wrap_child_size_overflowing_parent" style="width: 100px; height: 100px;">
|
||||
<div style="width: 100px;">
|
||||
<div style="width: 100px; height: 200px;"></div>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user