fixed autofillcolumns scroll columns (issue #2032)

git-svn-id: trunk@9225 -
This commit is contained in:
jesus 2006-05-02 00:55:57 +00:00
parent 9dfd319771
commit 30d3c8ded5

View File

@ -2316,12 +2316,12 @@ begin
Xinc:=0; Xinc:=0;
if Rnew.Left + FGCache.TLColOff < FGCache.FixedWidth then Xinc:=-1 if Rnew.Left + FGCache.TLColOff < FGCache.FixedWidth then Xinc:=-1
else if (RNew.Right + FGCache.TLColOff > FGCache.ClientWidth) else if (RNew.Right + FGCache.TLColOff > (FGCache.ClientWidth + GetBorderWidth))
and (RNew.Left + FGCache.TLColOff - GetColWidths(aCol) >= FGCache.FixedWidth) then XInc:=1; and (RNew.Left + FGCache.TLColOff - GetColWidths(aCol) >= FGCache.FixedWidth) then XInc:=1;
// Only scroll left if the left edge of the cell does not become invisible as a result // Only scroll left if the left edge of the cell does not become invisible as a result
Yinc:=0; Yinc:=0;
if RNew.Top + FGCache.TLRowOff < FGCache.FixedHeight then Yinc:=-1 if RNew.Top + FGCache.TLRowOff < FGCache.FixedHeight then Yinc:=-1
else if (RNew.Bottom + FGCache.TLRowOff > FGCache.ClientHeight) else if (RNew.Bottom + FGCache.TLRowOff > (FGCache.ClientHeight + GetBorderWidth))
and (RNew.Top + FGCache.TLRowOff - GetRowHeights(aRow) >= FGCache.FixedHeight) then YInc:=1; and (RNew.Top + FGCache.TLRowOff - GetRowHeights(aRow) >= FGCache.FixedHeight) then YInc:=1;
// Only scroll up if the top edge of the cell does not become invisible as a result // Only scroll up if the top edge of the cell does not become invisible as a result