mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-21 23:19:29 +02:00
LCL: TListBox.ScrollWidth is used when defined by user. Resolves issue #19079
git-svn-id: trunk@65169 -
This commit is contained in:
parent
561099dc46
commit
8a96677e5d
@ -267,10 +267,10 @@ end;
|
||||
|
||||
function TCustomListBox.GetScrollWidth: Integer;
|
||||
begin
|
||||
Result := FScrollWidth;
|
||||
if (Result > 0) or (csDesigning in ComponentState) then Exit;
|
||||
if HandleAllocated then
|
||||
Result := TWSCustomListBoxClass(WidgetSetClass).GetScrollWidth(Self)
|
||||
else
|
||||
Result := FScrollWidth;
|
||||
Result := TWSCustomListBoxClass(WidgetSetClass).GetScrollWidth(Self);
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user