mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 12:39:29 +02:00
LCL: TBitBtn: invalidate preferred size when changing layout so autosized buttons can resize correctly
git-svn-id: trunk@34507 -
This commit is contained in:
parent
48b2cd29e5
commit
90d21bf0ea
@ -143,8 +143,11 @@ procedure TCustomBitBtn.SetLayout(AValue: TButtonLayout);
|
||||
begin
|
||||
if FLayout = AValue then Exit;
|
||||
FLayout := AValue;
|
||||
if HandleAllocated
|
||||
then TWSBitBtnClass(WidgetSetClass).SetLayout(Self, FLayout);
|
||||
if HandleAllocated then
|
||||
begin
|
||||
TWSBitBtnClass(WidgetSetClass).SetLayout(Self, FLayout);
|
||||
InvalidatePreferredSize;
|
||||
end;
|
||||
AdjustSize;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user