From: Dongsug Song Date: Thu, 1 Apr 2021 08:04:34 +0000 (+0900) Subject: Revert "[NUI] Fix layout null crash issue" X-Git-Tag: accepted/tizen/6.0/unified/20210401.235002~1^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=16309e0c7c28c88d1512247e79720a4944212b01;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Revert "[NUI] Fix layout null crash issue" This reverts commit 41eab62a5b5fb34613fbf97b6b187c015014f364. --- diff --git a/src/Tizen.NUI/src/public/BaseComponents/View.cs b/src/Tizen.NUI/src/public/BaseComponents/View.cs index e6243cc..f26a87b 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/View.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/View.cs @@ -2180,7 +2180,7 @@ namespace Tizen.NUI.BaseComponents value.Padding = Padding; // If Layout is a LayoutItem then it could be a View that handles it's own padding. // Let the View keeps it's padding. Still store Padding in Layout to reduce code paths. - if (typeof(LayoutGroup).IsAssignableFrom(value.GetType())) // If a Layout container of some kind. + if (typeof(LayoutGroup).IsAssignableFrom(Layout.GetType())) // If a Layout container of some kind. { SetValue(PaddingProperty, new Extents(0, 0, 0, 0)); NotifyPropertyChanged();