remove uneeded check
authorabdullah <abdullahhasan10@gmail.com>
Tue, 28 Sep 2021 13:01:18 +0000 (16:01 +0300)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 9 Nov 2021 05:57:53 +0000 (14:57 +0900)
src/Tizen.NUI/src/public/Layouting/LayoutItem.cs

index 9af4c67..7e19d57 100755 (executable)
@@ -205,17 +205,15 @@ namespace Tizen.NUI
         {
             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)