LCL, fix grids scrollbar, from Tomasz Wieckowski, issue #18642

git-svn-id: trunk@29405 -
This commit is contained in:
jesus 2011-02-07 06:05:01 +00:00
parent 2cc34a70cb
commit e2b5fc4bf1

View File

@ -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;