You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Child nodes with YGNodeStyleSetFlexBasisPercent do not get updated between calls to YGNodeCalculateLayout if parent node's size is changed. I changed the percentage_flex_basis C++ test below to reflect this behaviour.
Expected Behavior
I would expect YGNodeStyleSetFlexBasisPercent to reflect any changes in the size of the parent node between YGNodeCalculateLayout calls.
Actual Behavior
YGNodeStyleSetFlexBasisPercent reflects the size the parent node had before the first YGNodeCalculateLayout call. This can be tricked by calling YGNodeStyleSetFlexBasisPercent repeatedly between YGNodeCalculateLayout with dummy values like in the code below.
Report
Issues and Steps to Reproduce
Child nodes with YGNodeStyleSetFlexBasisPercent do not get updated between calls to YGNodeCalculateLayout if parent node's size is changed. I changed the percentage_flex_basis C++ test below to reflect this behaviour.
Expected Behavior
I would expect YGNodeStyleSetFlexBasisPercent to reflect any changes in the size of the parent node between YGNodeCalculateLayout calls.
Actual Behavior
YGNodeStyleSetFlexBasisPercent reflects the size the parent node had before the first YGNodeCalculateLayout call. This can be tricked by calling YGNodeStyleSetFlexBasisPercent repeatedly between YGNodeCalculateLayout with dummy values like in the code below.
Link to Code
When applicable, use this fiddle to post a web repro.
The text was updated successfully, but these errors were encountered: