mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-24 00:49:45 +02:00
LCL, grids: fix last cell not scrollble, from Michl, issue #28889
git-svn-id: trunk@52063 -
This commit is contained in:
parent
ef066ef583
commit
1a9f949c1f
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user