[NUI] Layouts not restricted to parents size as default (#1106)
authoragnelovaz <agnelo.vaz@samsung.com>
Mon, 4 Nov 2019 05:53:19 +0000 (05:53 +0000)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Mon, 4 Nov 2019 05:53:19 +0000 (14:53 +0900)
Do not restrict Layouts to their parent size at most unless
explictly requested to MatchParent

Needed to allow a layout to scroll within it's smaller parent.

Change-Id: Id2d84601a9b1d2956636b6d5f9334eefb5f0e9c0

src/Tizen.NUI/src/internal/Layouting/LayoutController.cs

index d97dd08..161207a 100755 (executable)
@@ -229,8 +229,8 @@ namespace Tizen.NUI
 
                 LayoutLength width = new LayoutLength(rootSize.Width);
                 LayoutLength height = new LayoutLength(rootSize.Height);
-                MeasureSpecification.ModeType widthMode = MeasureSpecification.ModeType.AtMost;
-                MeasureSpecification.ModeType heightMode = MeasureSpecification.ModeType.AtMost;
+                MeasureSpecification.ModeType widthMode = MeasureSpecification.ModeType.Unspecified;
+                MeasureSpecification.ModeType heightMode = MeasureSpecification.ModeType.Unspecified;
 
                 if ( root.WidthSpecification >= 0 )
                 {