[NUI] Fix view style initialization bug (#2442)
authorJiyun Yang <ji.yang@samsung.com>
Tue, 22 Dec 2020 05:00:38 +0000 (14:00 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 22 Dec 2020 08:57:34 +0000 (17:57 +0900)
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
Co-authored-by: YeongJong Lee <cleanlyj@naver.com>
src/Tizen.NUI/src/public/BaseComponents/ViewInternal.cs

index 7b2a1b1..8dd6719 100755 (executable)
@@ -1404,8 +1404,8 @@ namespace Tizen.NUI.BaseComponents
         {
             if (!ThemeManager.ThemeApplied) return;
 
-            if (viewStyle == null) UpdateStyle(); // Use style in the current theme
-            else ApplyStyle(viewStyle.Clone());   // Use given style
+            if (style == null) UpdateStyle(); // Use style in the current theme
+            else ApplyStyle(style.Clone());   // Use given style
         }
     }
 }