mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 16:39:26 +02:00
grids: fast resizing of columns wider than visible area
git-svn-id: trunk@10636 -
This commit is contained in:
parent
64e579272e
commit
677185a3bf
@ -3742,6 +3742,11 @@ begin
|
||||
if OffsetToColRow(True, True, X, FSplitter.X, Loc) then begin
|
||||
R:=CellRect(FSplitter.x, FSplitter.y);
|
||||
FSplitter.y:=X; // Resizing X reference
|
||||
|
||||
// if resizing column is partially visible, take the visible boundary.
|
||||
if R.Right>FGCache.ClientWidth then
|
||||
Loc:=FGCache.Clientwidth
|
||||
else
|
||||
if (R.Right-X)<(X-R.Left) then
|
||||
Loc:=R.Right
|
||||
else begin
|
||||
|
Loading…
Reference in New Issue
Block a user