LCL: TCustomLabel.CalculatePreferredSize: consider constraints

git-svn-id: trunk@26528 -
This commit is contained in:
mattias 2010-07-08 15:00:20 +00:00
parent af31f6d34d
commit 959cda8c75
2 changed files with 2 additions and 0 deletions

View File

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

View File

@ -37,6 +37,7 @@ begin
AWidth:=Width
else
AWidth:=10000;
AWidth:=Constraints.MinMaxWidth(AWidth);
CalculateSize(AWidth,PreferredWidth,PreferredHeight);
end;