Fix percentage calculation when parent size is undefined
Summary: If parent size was undefined and node specified percentage size it would pass does an exact measure mode with an undefined value which broke an assertion. Reviewed By: gkassabli Differential Revision: D4494265 fbshipit-source-id: 9efef9e39a1b66af2d0f144575a96c919d60dbf7
This commit is contained in:
committed by
Facebook Github Bot
parent
4227e36ca5
commit
cfeac79130
@@ -79,3 +79,7 @@
|
||||
<div id="percentage_absolute_position" experiments="Rounding" style="width: 200px; height: 100px;">
|
||||
<div style="position: absolute; top: 10%; left: 30%; width: 10px; height: 10px;"></div>
|
||||
</div>
|
||||
|
||||
<div id="percentage_width_height_undefined_parent_size">
|
||||
<div style="width: 50%; height: 50%;"></div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user