[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 11:32:05 +0000 (20:32 +0900)
src/Tizen.NUI/src/internal/Layouting/LayoutController.cs
src/Tizen.NUI/src/public/Window/Window.cs

index 4373ee1..e4c2872 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 ef73ba2..8451a6b 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>