LCL: Fix GTK2 scroll bars jumping to bottom. Issue #24389, patch from chiizujin

git-svn-id: trunk@41056 -
This commit is contained in:
juha 2013-05-06 22:05:30 +00:00
parent d86926de1e
commit 30324f1b1c

View File

@ -3137,8 +3137,11 @@ begin
MaxValue := ARange^.adjustment^.upper - ARange^.adjustment^.page_size
else
MaxValue := ARange^.adjustment^.upper;
if (AValue > MaxValue) or (AValue < ARange^.adjustment^.lower) then
AValue := MaxValue;
if (AValue > MaxValue) then
AValue := MaxValue
else if (AValue < ARange^.adjustment^.lower) then
AValue := ARange^.adjustment^.lower;
with Msg do
begin