lcl: grids: fix scroll area for flat grid. Issue #30173

git-svn-id: trunk@52368 -
This commit is contained in:
ondrej 2016-05-23 16:38:31 +00:00
parent 181faec3ff
commit 40631ca1a5

View File

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