Qt: unify TScrollBar Max value and position with winapi. issue #20127

git-svn-id: trunk@52150 -
This commit is contained in:
zeljko 2016-04-09 08:02:04 +00:00
parent 34f3fbbdfc
commit 7ffbcd7764

View File

@ -366,8 +366,8 @@ begin
QtScrollBar.BeginUpdate;
try
if (QtScrollBar.getMin <> AScrollBar.Min) or
(QtScrollBar.getMax <> AScrollbar.Max) then
QtScrollBar.setRange(AScrollBar.Min, AScrollBar.Max);
(QtScrollBar.getMax <> (AScrollbar.Max - AScrollBar.PageSize)) then
QtScrollBar.setRange(AScrollBar.Min, AScrollBar.Max - AScrollBar.PageSize);
if QtScrollBar.getPageStep <> AScrollBar.PageSize then
begin
QtScrollBar.setPageStep(AScrollBar.PageSize);