From: huiyu.eun Date: Thu, 27 May 2021 05:44:35 +0000 (+0900) Subject: [NUI] Fix ScrollableBase Remove issue X-Git-Tag: submit/tizen_6.0/20211202.081938~1^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=409f7edb5bd421da4a8b4dd24debec393e17f533;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Fix ScrollableBase Remove issue - [TDAF-1430] ScrollableaBase Child remove issue If the ScrollableBase has one child, it does not need to move the page Signed-off-by: huiyu.eun --- diff --git a/src/Tizen.NUI.Components/Controls/ScrollableBase.cs b/src/Tizen.NUI.Components/Controls/ScrollableBase.cs index 0abdf5937..e7698304c 100755 --- a/src/Tizen.NUI.Components/Controls/ScrollableBase.cs +++ b/src/Tizen.NUI.Components/Controls/ScrollableBase.cs @@ -754,7 +754,7 @@ namespace Tizen.NUI.Components /// 8 public override void Remove(View view) { - if (SnapToPage && CurrentPage == Children.IndexOf(view) && CurrentPage == Children.Count - 1) + if (SnapToPage && CurrentPage == Children.IndexOf(view) && CurrentPage == Children.Count - 1 && Children.Count > 1) { // Target View is current page and also last child. // CurrentPage should be changed to previous page.