{
bool needsLayout = NeedsLayout(widthMeasureSpec.Size.AsDecimal(), heightMeasureSpec.Size.AsDecimal(), widthMeasureSpec.Mode, heightMeasureSpec.Mode);
- needsLayout = needsLayout || ((flags & LayoutFlags.ForceLayout) == LayoutFlags.ForceLayout);
if (needsLayout)
{
OnMeasure(widthMeasureSpec, heightMeasureSpec);
OnMeasureIndependentChildren(widthMeasureSpec, heightMeasureSpec);
flags = flags | LayoutFlags.LayoutRequired;
flags &= ~LayoutFlags.ForceLayout;
+ oldWidthMeasureSpec = widthMeasureSpec;
+ oldHeightMeasureSpec = heightMeasureSpec;
}
-
- oldWidthMeasureSpec = widthMeasureSpec;
- oldHeightMeasureSpec = heightMeasureSpec;
}
internal bool NeedsLayout(float widthSize, float heightSize, MeasureSpecification.ModeType widthMode, MeasureSpecification.ModeType heightMode)