mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 10:19:22 +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
|
if OffsetToColRow(True, True, X, FSplitter.X, Loc) then begin
|
||||||
R:=CellRect(FSplitter.x, FSplitter.y);
|
R:=CellRect(FSplitter.x, FSplitter.y);
|
||||||
FSplitter.y:=X; // Resizing X reference
|
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
|
if (R.Right-X)<(X-R.Left) then
|
||||||
Loc:=R.Right
|
Loc:=R.Right
|
||||||
else begin
|
else begin
|
||||||
|
Loading…
Reference in New Issue
Block a user