Fixup margin: auto and justification behavior for overflowed containers (#1646)
Summary: Pull Request resolved: https://github.com/facebook/yoga/pull/1646 X-link: https://github.com/facebook/react-native/pull/44069 Fixes https://github.com/facebook/yoga/issues/978 1. Don't allow auto margin spaces to become a negative length 2. Replicate fallback alignment behavior specified by box-alignment spec that we are using for align-content. Reviewed By: joevilches Differential Revision: D56091577 fbshipit-source-id: 3c02f81f969bb947cdc5c80b15faaa0b0d39c0c2
This commit is contained in:
committed by
Facebook GitHub Bot
parent
c0239e338f
commit
932361cdbf
@@ -150,3 +150,8 @@
|
||||
<div style="flex: 1; margin-left:auto;"></div>
|
||||
<div style="width: 50px; height: 50px;"></div>
|
||||
</div>
|
||||
|
||||
<div id="margin_auto_overflowing_container" style="width: 200px; height: 200px; align-items: center;">
|
||||
<div style="width: 50px; height: 150px; margin-bottom: auto;"></div>
|
||||
<div style="width: 50px; height: 150px;"></div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user