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
@@ -133,8 +133,6 @@
|
||||
<div style="width: 50px; height: 20px;flex-direction:column;"></div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div id="align_baseline_multiline_row_and_column" style="width: 100px; height: 100px; flex-direction:row; align-items: baseline;flex-wrap:wrap;">
|
||||
<div style="width: 50px; height: 50px;"></div>
|
||||
<div style="width: 50px; height: 50px;flex-direction:column;">
|
||||
@@ -144,4 +142,28 @@
|
||||
<div style="width: 50px; height: 10px;"></div>
|
||||
</div>
|
||||
<div style="width: 50px; height: 20px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="align_items_center_child_with_margin_bigger_than_parent" style="height: 52px; width: 52px; align-items: center; justify-content: center;">
|
||||
<div style="align-items: center;">
|
||||
<div style="width: 52px; height: 52px; margin-left: 10px; margin-right: 10px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="align_items_flex_end_child_with_margin_bigger_than_parent" style="height: 52px; width: 52px; align-items: center; justify-content: center;">
|
||||
<div style="align-items: flex-end;">
|
||||
<div style="width: 52px; height: 52px; margin-left: 10px; margin-right: 10px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="align_items_center_child_without_margin_bigger_than_parent" style="height: 52px; width: 52px; align-items: center; justify-content: center;">
|
||||
<div style="align-items: center;">
|
||||
<div style="width: 72px; height: 72px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="align_items_flex_end_child_without_margin_bigger_than_parent" style="height: 52px; width: 52px; align-items: center; justify-content: center;">
|
||||
<div style="align-items: flex-end;">
|
||||
<div style="width: 72px; height: 72px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user