grids: fast resizing of columns wider than visible area

git-svn-id: trunk@10636 -
This commit is contained in:
jesus 2007-02-13 21:56:55 +00:00
parent 64e579272e
commit 677185a3bf

View File

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