mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-07 12:09:34 +01:00
LCL: Fix GTK2 scroll bars jumping to bottom. Issue #24389, patch from chiizujin
git-svn-id: trunk@41056 -
This commit is contained in:
parent
d86926de1e
commit
30324f1b1c
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user