LCL, grids: fix last cell not scrollble, from Michl, issue #28889

git-svn-id: trunk@52063 -
This commit is contained in:
jesus 2016-03-26 17:27:54 +00:00
parent ef066ef583
commit 1a9f949c1f

View File

@ -4421,7 +4421,7 @@ begin
aPos := Message.Pos;
with FGCache do begin
TL:= integer(PtrUInt(AccumWidth[ MaxTopLeft.X ])) - FixedWidth;
TL:= Max(integer(PtrUInt(AccumWidth[ MaxTopLeft.X ])) - FixedWidth, GridWidth - ClientWidth);
CTL:= integer(PtrUInt(AccumWidth[ FTopLeft.X ])) - FixedWidth + TLColOff;
end;
@ -4539,7 +4539,7 @@ begin
exit;
with FGCache do begin
TL:= integer(PtrUInt(AccumHeight[ MaxTopLeft.Y ])) - FixedHeight;
TL:= Max(integer(PtrUInt(AccumHeight[ MaxTopLeft.Y ])) - FixedHeight, GridHeight - ClientHeight);
CTL:= integer(PtrUInt(AccumHeight[ FTopLeft.Y ])) - FixedHeight + TLRowOff;
end;