From: Jiyun Yang Date: Mon, 15 Feb 2021 02:58:30 +0000 (+0900) Subject: [NUI] Fix vertical scrollbar position bug (#2639) X-Git-Tag: accepted/tizen/6.0/unified/20210216.064335~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=92db88414a9f6503eeda54b31248c3aec1bff512;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Fix vertical scrollbar position bug (#2639) There was a copy & paste error in vertical scroll position calculator in a scrollbar. Signed-off-by: Jiyun Yang --- diff --git a/src/Tizen.NUI.Components/Controls/Scrollbar.cs b/src/Tizen.NUI.Components/Controls/Scrollbar.cs index fa420f7..abc1a20 100755 --- a/src/Tizen.NUI.Components/Controls/Scrollbar.cs +++ b/src/Tizen.NUI.Components/Controls/Scrollbar.cs @@ -706,7 +706,7 @@ namespace Tizen.NUI.Components public override Vector2 CalculateThumbScrollPosition(Size trackSize, Vector2 thumbPosition, PaddingType trackPadding) { float pos = Math.Min(Math.Max(currentPosition, 0.0f), contentLength - visibleLength); - return new Vector2(thumbPosition.X, trackPadding.Item1 + trackSize.Height * pos / contentLength); + return new Vector2(thumbPosition.X, trackPadding.Item3 + trackSize.Height * pos / contentLength); } }