Fix sizing of non strech items
Summary: Fixes the sizing of items so that under most scenarios it calcultes its height by it's content for non exact measurings. See facebook/yoga#505 Closes https://github.com/facebook/yoga/pull/506 Differential Revision: D4878875 Pulled By: emilsjolander fbshipit-source-id: ab1174ac7a76dcf20aae7b29a3bc396e11077c4d
This commit is contained in:
committed by
Facebook Github Bot
parent
c080a46571
commit
0235789863
@@ -167,3 +167,20 @@
|
||||
<div style="width: 72px; height: 72px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="align_center_should_size_based_on_content" style="width: 100px; height: 100px; align-items: center; margin-top: 20px;">
|
||||
<div style="flex-grow: 0; flex-shrink: 1; justify-content: center;">
|
||||
<div style="flex-grow: 1; flex-shrink: 1;">
|
||||
<div style="width: 20px; height: 20px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="align_strech_should_size_based_on_parent" style="width: 100px; height: 100px; align-items: strech; margin-top: 20px;">
|
||||
<div style="flex-grow: 0; flex-shrink: 1; justify-content: center;">
|
||||
<div style="flex-grow: 1; flex-shrink: 1;">
|
||||
<div style="width: 20px; height: 20px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user