[NUI] Fix some SVACE issues.
authorzhouhao02 <haozhou.zhou@samsung.com>
Tue, 31 Oct 2023 05:11:23 +0000 (13:11 +0800)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Mon, 6 Nov 2023 12:12:22 +0000 (21:12 +0900)
src/Tizen.NUI/src/internal/Layouting/LayoutController.cs
src/Tizen.NUI/src/public/Window/Window.cs

index 4373ee1bcfd4493e56b07ac5c5342f0e80a52f0d..e4c2872ac43e93390ea17ccd5b9b90801e945841 100755 (executable)
@@ -225,7 +225,8 @@ namespace Tizen.NUI
         // Parent not a View so assume it's a Layer which is the size of the window.
         private void MeasureAndLayout(View root, float parentWidth, float parentHeight)
         {
-            if (root.Layout != null)
+            var layout = root.Layout;
+            if (layout != null)
             {
                 // Determine measure specification for root.
                 // The root layout policy could be an exact size, be match parent or wrap children.
@@ -237,7 +238,7 @@ namespace Tizen.NUI
                 var widthMode = GetMode(root.WidthSpecification);
                 var heightMode = GetMode(root.HeightSpecification);
 
-                if (root.Layout.NeedsLayout(widthSize, heightSize, widthMode, heightMode))
+                if (layout.NeedsLayout(widthSize, heightSize, widthMode, heightMode))
                 {
                     var widthSpec = CreateMeasureSpecification(widthSize, widthMode);
                     var heightSpec = CreateMeasureSpecification(heightSize, heightMode);
@@ -251,8 +252,8 @@ namespace Tizen.NUI
                 // Start at root which was just measured.
                 PerformLayout(root, new LayoutLength(positionX),
                                      new LayoutLength(positionY),
-                                     new LayoutLength(positionX) + root.Layout.MeasuredWidth.Size,
-                                     new LayoutLength(positionY) + root.Layout.MeasuredHeight.Size);
+                                     new LayoutLength(positionX) + layout.MeasuredWidth.Size,
+                                     new LayoutLength(positionY) + layout.MeasuredHeight.Size);
             }
         }
 
index ef73ba23e6d9ddca61bebe6737d2136b3622dd0a..8451a6b17a062f2f2638256c0e5fbbe98e286b4e 100755 (executable)
@@ -2481,7 +2481,7 @@ namespace Tizen.NUI
         {
             bool ret = Interop.Window.GetFullScreen(SwigCPtr);
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-              return ret;
+            return ret;
         }
 
         /// <summary>