LCL: TListBox.ScrollWidth is used when defined by user. Resolves issue #19079

git-svn-id: trunk@65169 -
This commit is contained in:
michl 2021-06-03 18:40:17 +00:00
parent 561099dc46
commit 8a96677e5d

View File

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