mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-29 16:22:49 +02:00
* Disabled range fix until WM_MOVE messages are send for all gtklayout childs
git-svn-id: trunk@7962 -
This commit is contained in:
parent
feea1058fa
commit
3de2242d78
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user