[NUI] Fix crash issue in PaginationStyle. (#2448)
authorguowei.wang <guowei.wang@samsung.com>
Thu, 24 Dec 2020 09:26:08 +0000 (17:26 +0800)
committerhuiyueun <35286162+huiyueun@users.noreply.github.com>
Mon, 11 Jan 2021 05:49:43 +0000 (14:49 +0900)
src/Tizen.NUI.Components/Controls/Pagination.cs

index e6d57cb..f42a2f4 100755 (executable)
@@ -103,6 +103,7 @@ namespace Tizen.NUI.Components
                 }
                 paginationStyle.IndicatorSize = value;
                 UpdateVisual();
+                UpdateContainer();
             }
         }
 
@@ -471,6 +472,10 @@ namespace Tizen.NUI.Components
             {
                 return;
             }
+            if (paginationStyle.IndicatorSize == null)
+            {
+                paginationStyle.IndicatorSize = new Size(0, 0);
+            }
             ImageVisual indicator = new ImageVisual
             {
                 URL = paginationStyle.IndicatorImageUrl?.Normal,