Revert "[NUI] Fix layout null crash issue"
authorDongsug Song <dongsug.song@samsung.com>
Thu, 1 Apr 2021 08:04:34 +0000 (17:04 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Thu, 1 Apr 2021 08:48:43 +0000 (17:48 +0900)
This reverts commit 41eab62a5b5fb34613fbf97b6b187c015014f364.

src/Tizen.NUI/src/public/BaseComponents/View.cs

index e6243cc..f26a87b 100755 (executable)
@@ -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();