TForm.AutoSize: TCustomForm.CalculatePreferredSize, check for Parent=nil

git-svn-id: trunk@26279 -
This commit is contained in:
mattias 2010-06-24 09:43:13 +00:00
parent ee8a253eab
commit 5f8cbd5a41

View File

@ -1049,7 +1049,7 @@ var
begin
inherited CalculatePreferredSize(PreferredWidth, PreferredHeight,
WithThemeSpace);
if Anchors*[akRight,akBottom]<>[] then begin
if (Parent=nil) and (Anchors*[akRight,akBottom]<>[]) then begin
// do size bigger than the monitor workarea
WorkArea:=Monitor.WorkareaRect;
if akRight in Anchors then