[NUI] Padding bug in LayoutGroup fixed (#1136)
authoragnelovaz <agnelo.vaz@samsung.com>
Mon, 25 Nov 2019 01:04:01 +0000 (01:04 +0000)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Mon, 25 Nov 2019 01:04:01 +0000 (10:04 +0900)
LayoutGroup measuring child without using the parent's padding.
Resulted in LinearLayout not reducing the childs size when padding applied to parent

src/Tizen.NUI/src/public/Layouting/LayoutGroup.cs

index c661768..070231d 100755 (executable)
@@ -461,7 +461,7 @@ namespace Tizen.NUI
         {
             View childOwner = child.Owner;
 
-            Extents padding = child.Padding; // Padding of this layout's owner, not of the child being measured.
+            Extents padding = Padding; // Padding of this layout's owner, not of the child being measured.
 
             MeasureSpecification childWidthMeasureSpec = GetChildMeasureSpecification( parentWidthMeasureSpec,
                                                                                        new LayoutLength(padding.Start + padding.End ),