mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 05:59:28 +02:00
LCL, fix grids scrollbar, from Tomasz Wieckowski, issue #18642
git-svn-id: trunk@29405 -
This commit is contained in:
parent
2cc34a70cb
commit
e2b5fc4bf1
@ -4008,7 +4008,7 @@ var
|
||||
ScrollInfo.fMask := SIF_RANGE or SIF_PAGE;
|
||||
GetScrollInfo(Handle, SB_HORZ, ScrollInfo);
|
||||
with ScrollInfo do
|
||||
if message.Pos>=(nMax-nMin-nPage) then
|
||||
if not (goSmoothScroll in Options) and (message.Pos>=(nMax-nMin-nPage)) then
|
||||
result := TL
|
||||
else
|
||||
result := message.Pos;
|
||||
@ -4117,7 +4117,7 @@ var
|
||||
ScrollInfo.fMask := SIF_RANGE or SIF_PAGE;
|
||||
GetScrollInfo(Handle, SB_VERT, ScrollInfo);
|
||||
with ScrollInfo do
|
||||
if message.Pos>=(nMax-nMin-nPage) then
|
||||
if not (goSmoothScroll in Options) and (message.Pos>=(nMax-nMin-nPage)) then
|
||||
result := TL
|
||||
else
|
||||
result := message.Pos;
|
||||
|
Loading…
Reference in New Issue
Block a user