From: huiyu.eun Date: Thu, 27 May 2021 05:44:35 +0000 (+0900) Subject: [NUI] Fix ScrollableBase Remove issue X-Git-Tag: accepted/tizen/6.0/unified/20211206.110215~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3f0c093fbf76d7cd831cce6ec3a58f6928458225;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 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);