mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-10 06:08:17 +02:00
LCL: TCustomLabel.CalculatePreferredSize: consider constraints
git-svn-id: trunk@26528 -
This commit is contained in:
parent
af31f6d34d
commit
959cda8c75
@ -6578,6 +6578,7 @@ Begin
|
||||
{$IFDEF IDE_DEBUG}
|
||||
writeln('[TSourceNotebook.NewFile] D ');
|
||||
{$ENDIF}
|
||||
//debugln(['TSourceNotebook.NewFile ',NewShortName,' ',ASource.Filename]);
|
||||
Result.PageName:= Manager.FindUniquePageName(NewShortName, Result);
|
||||
UpdatePageNames;
|
||||
UpdateProjectFiles;
|
||||
|
@ -37,6 +37,7 @@ begin
|
||||
AWidth:=Width
|
||||
else
|
||||
AWidth:=10000;
|
||||
AWidth:=Constraints.MinMaxWidth(AWidth);
|
||||
CalculateSize(AWidth,PreferredWidth,PreferredHeight);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user