mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 04:36:31 +02:00
lcl: adjust TButtonPanel buttons width/height on text change
git-svn-id: trunk@19588 -
This commit is contained in:
parent
43a719696b
commit
4757739e38
@ -263,6 +263,10 @@ begin
|
||||
begin
|
||||
if FButtons[btn] = nil then Continue;
|
||||
FButtons[btn].CalculatePreferredSize(BtnWidth, BtnHeight, True);
|
||||
if Align in [alTop, alBottom] then
|
||||
FButtons[btn].Width := BtnWidth;
|
||||
if Align in [alLeft, alRight] then
|
||||
FButtons[btn].Height := BtnHeight;
|
||||
if BtnWidth > FButtonsWidth then
|
||||
FButtonsWidth := BtnWidth;
|
||||
if BtnHeight > FButtonsHeight then
|
||||
|
Loading…
Reference in New Issue
Block a user