From: YeongJong Lee Date: Mon, 23 Nov 2020 05:50:07 +0000 (+0900) Subject: [NUI] remove unnecessary code that flex margin is assigned to flexlayout (#2272) X-Git-Tag: accepted/tizen/unified/20210219.040944~254 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a6cafd70397dd1e051676526479764216b0316dc;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] remove unnecessary code that flex margin is assigned to flexlayout (#2272) Sicne the margin of FlexLayout will be handled by the parent layout, we don't need to re-assign margin in `OnMeasure`. --- diff --git a/src/Tizen.NUI/src/public/Layouting/FlexLayout.cs b/src/Tizen.NUI/src/public/Layouting/FlexLayout.cs index 1c8dbec..b1502f7 100755 --- a/src/Tizen.NUI/src/public/Layouting/FlexLayout.cs +++ b/src/Tizen.NUI/src/public/Layouting/FlexLayout.cs @@ -655,9 +655,7 @@ namespace Tizen.NUI { bool isLayoutRtl = Owner.LayoutDirection == ViewLayoutDirectionType.RTL; Extents padding = Owner.Padding; - Extents margin = Owner.Margin; - Interop.FlexLayout.FlexLayout_SetMargin(swigCPtr, Extents.getCPtr(margin)); Interop.FlexLayout.FlexLayout_SetPadding(swigCPtr, Extents.getCPtr(padding)); float width = FlexUndefined; // Behaves as WrapContent (Flex Auto)