[NUI] NUI_DevelNUI_layout_null_issue (#2792)
authorhuiyueun <35286162+huiyueun@users.noreply.github.com>
Sun, 28 Mar 2021 23:39:40 +0000 (08:39 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 30 Mar 2021 06:51:02 +0000 (15:51 +0900)
need to check 'value'

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
src/Tizen.NUI/src/public/BaseComponents/View.cs

index e7aa1fd..c4ad6dd 100755 (executable)
@@ -2470,7 +2470,7 @@ namespace Tizen.NUI.BaseComponents
 
                             // 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(Layout.GetType()))
+                            if (typeof(LayoutGroup).IsAssignableFrom(value.GetType()))
                             {
                                 SetValue(PaddingProperty, new Extents(0, 0, 0, 0));
                                 NotifyPropertyChanged();