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
There are cases where subtraction from totalFlexShrinkScaledFactors causes the value to apporach zero but not quite reach it, flexLine.layout.totalFlexShrinkScaledFactors == 0 should instead be <= 0.001
Happens only under extreme conditions (resizing panels to 0 width)
We have yoga::inexactEquals that we could use for this. The way it works is a bit of a sledge hammer, but it's the right overall check here if we can accumulate FP error.
There are cases where subtraction from totalFlexShrinkScaledFactors causes the value to apporach zero but not quite reach it,
flexLine.layout.totalFlexShrinkScaledFactors == 0
should instead be <= 0.001Happens only under extreme conditions (resizing panels to 0 width)
yoga/yoga/algorithm/CalculateLayout.cpp
Line 659 in 49ee855
The text was updated successfully, but these errors were encountered: