mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 13:59:31 +02:00
lcl: grids: fix scroll area for flat grid. Issue #30173
git-svn-id: trunk@52368 -
This commit is contained in:
parent
181faec3ff
commit
40631ca1a5
@ -3257,12 +3257,16 @@ begin
|
||||
if DeltaX<>0 then
|
||||
begin
|
||||
ClipArea := ClientRect;
|
||||
if Flat then
|
||||
InflateRect(ClipArea, -1, -1);
|
||||
Inc(ClipArea.Left, FGCache.FixedWidth);
|
||||
ScrollWindowEx(Handle, DeltaX, 0, @ClipArea, @ClipArea, 0, nil, ScrollFlags);
|
||||
end;
|
||||
if DeltaY<>0 then
|
||||
begin
|
||||
ClipArea := ClientRect;
|
||||
if Flat then
|
||||
InflateRect(ClipArea, -1, -1);
|
||||
Inc(ClipArea.Top, FGCache.FixedHeight);
|
||||
ScrollWindowEx(Handle, 0, DeltaY, @ClipArea, @ClipArea, 0, nil, ScrollFlags);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user