[NUI] Sync dalihub - Add C# layout (#816)
[platform/core/csapi/tizenfx.git] / test / NUITestSample / NUITestSample / examples / layouting / root-problem-fix-adding-several-layers.cs
index 840ab1e..bf7a085 100755 (executable)
@@ -7,17 +7,17 @@ namespace RootProblemFixAddingSeveralLayers
 {
     public class CustomLayout : LayoutGroup
     {
-        protected override void OnMeasure(LayoutMeasureSpec widthMeasureSpec, LayoutMeasureSpec heightMeasureSpec)
+        protected override void OnMeasure(MeasureSpecification widthMeasureSpec, MeasureSpecification heightMeasureSpec)
         {
             var accumulatedWidth = new LayoutLength(0);
             var maxHeight = 0;
             var measuredWidth = new LayoutLength(0);
             LayoutLength measuredHeight = new LayoutLength(0);
-            LayoutMeasureSpec.ModeType widthMode = widthMeasureSpec.Mode;
-            LayoutMeasureSpec.ModeType heightMode = heightMeasureSpec.Mode;
+            MeasureSpecification.ModeType widthMode = widthMeasureSpec.Mode;
+            MeasureSpecification.ModeType heightMode = heightMeasureSpec.Mode;
 
-            bool isWidthExact = (widthMode == LayoutMeasureSpec.ModeType.EXACTLY);
-            bool isHeightExact = (heightMode == LayoutMeasureSpec.ModeType.EXACTLY);
+            bool isWidthExact = (widthMode == MeasureSpecification.ModeType.EXACTLY);
+            bool isHeightExact = (heightMode == MeasureSpecification.ModeType.EXACTLY);
 
             // In this layout we will:
             //  Measuring the layout with the children in a horizontal configuration, one after another