From 3f0c093fbf76d7cd831cce6ec3a58f6928458225 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Tizen.NUI.Components/Controls/ScrollableBase.cs b/src/Tizen.NUI.Components/Controls/ScrollableBase.cs index e769830..4b26f15 100755 --- a/src/Tizen.NUI.Components/Controls/ScrollableBase.cs +++ b/src/Tizen.NUI.Components/Controls/ScrollableBase.cs @@ -758,8 +758,7 @@ namespace Tizen.NUI.Components { // Target View is current page and also last child. // CurrentPage should be changed to previous page. - CurrentPage = Math.Max(0, CurrentPage - 1); - ScrollToIndex(CurrentPage); + ScrollToIndex(CurrentPage - 1); } ContentContainer.Remove(view); -- 2.7.4