mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-08 11:19:16 +02:00
LCL: TControl.FontChanged: moved AutoSize from TWinControl to TControl
git-svn-id: trunk@23367 -
This commit is contained in:
parent
ee54a701ad
commit
5848a2067c
@ -277,6 +277,11 @@ begin
|
||||
FParentFont := False;
|
||||
Invalidate;
|
||||
Perform(CM_FONTCHANGED, 0, 0);
|
||||
if AutoSize then
|
||||
begin
|
||||
InvalidatePreferredSize;
|
||||
AdjustSize;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TControl.ParentFontChanged;
|
||||
|
@ -4532,15 +4532,10 @@ begin
|
||||
begin
|
||||
TWSWinControlClass(WidgetSetClass).SetFont(Self, Font);
|
||||
Exclude(FWinControlFlags, wcfFontChanged);
|
||||
if AutoSize then
|
||||
begin
|
||||
InvalidatePreferredSize;
|
||||
AdjustSize;
|
||||
end;
|
||||
end
|
||||
else
|
||||
Include(FWinControlFlags, wcfFontChanged);
|
||||
inherited;
|
||||
inherited FontChanged(Sender);
|
||||
NotifyControls(CM_PARENTFONTCHANGED);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user