Fix align-content: center, flex-end alignment with margin
Summary: This fixes ```align-content: center``` and ```align-content: flex-end``` when the child exceeds the parents size. See #476. It also fixes those layouts if the child has ```margin: auto``` set. Closes https://github.com/facebook/yoga/pull/477 Differential Revision: D4697833 Pulled By: emilsjolander fbshipit-source-id: d081ec7ea559a5f2bd3271c3a4dc272960beddfa
This commit is contained in:
committed by
Facebook Github Bot
parent
11052053d8
commit
b94466e502
@@ -124,3 +124,19 @@
|
||||
<div id="margin_should_not_be_part_of_max_width" style="width: 250px; height: 250px;">
|
||||
<div style="width: 100px; height: 100px; max-width: 100px; margin-left: 20px;"></div>
|
||||
</div>
|
||||
|
||||
<div id="margin_auto_left_right_child_bigger_than_parent" style="height: 52px; width: 52px; justify-content: center;">
|
||||
<div style="width: 72px; height: 72px; margin-left: auto; margin-right:auto;"></div>
|
||||
</div>
|
||||
|
||||
<div id="margin_auto_left_child_bigger_than_parent" style="height: 52px; width: 52px; justify-content: center;">
|
||||
<div style="width: 72px; height: 72px; margin-left: auto;"></div>
|
||||
</div>
|
||||
|
||||
<div id="margin_fix_left_auto_right_child_bigger_than_parent" style="height: 52px; width: 52px; justify-content: center;">
|
||||
<div style="width: 72px; height: 72px; margin-left: 10px; margin-right: auto;"></div>
|
||||
</div>
|
||||
|
||||
<div id="margin_auto_left_fix_right_child_bigger_than_parent" style="height: 52px; width: 52px; justify-content: center;">
|
||||
<div style="width: 72px; height: 72px; margin-left: auto; margin-right: 10px;"></div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user