mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 12:18:03 +02:00
TForm.AutoSize: TCustomForm.CalculatePreferredSize, check for Parent=nil
git-svn-id: trunk@26279 -
This commit is contained in:
parent
ee8a253eab
commit
5f8cbd5a41
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user