* Disabled range fix until WM_MOVE messages are send for all gtklayout childs

git-svn-id: trunk@7962 -
This commit is contained in:
marc 2005-10-12 22:20:07 +00:00
parent feea1058fa
commit 3de2242d78

View File

@ -213,9 +213,12 @@ procedure TControlScrollBar.AutoCalcRange;
if not C.Visible then Continue;
if (c.Align <> alLeft) and (c.Align <> alNone) then Continue;
TmpRange := Max(TmpRange, c.Left + c.Width);
if c.Left < 0
then DebugLn('Child.Left = %d, Control.Left = %d', [c.Left, FControl.Left]);
// the left of a control is negative when it is scrolled to the left,
// so add FPosition
// MWE: temporary disabled until WM_MOVE messages are send for all gtklayout childs
TmpRange := Max(TmpRange, {FPosition +} c.Left + c.Width);
{if c.Left < 0
then DebugLn('Child.Left = %d, Control.Left = %d', [c.Left, FControl.Left]);}
end;
Range := TmpRange;
end;