From 409f7edb5bd421da4a8b4dd24debec393e17f533 Mon Sep 17 00:00:00 2001 From: "huiyu.eun" Date: Thu, 27 May 2021 14:44:35 +0900 Subject: [PATCH] [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 --- src/Tizen.NUI.Components/Controls/ScrollableBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.34.1