mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 06:20:33 +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
|
begin
|
||||||
inherited CalculatePreferredSize(PreferredWidth, PreferredHeight,
|
inherited CalculatePreferredSize(PreferredWidth, PreferredHeight,
|
||||||
WithThemeSpace);
|
WithThemeSpace);
|
||||||
if Anchors*[akRight,akBottom]<>[] then begin
|
if (Parent=nil) and (Anchors*[akRight,akBottom]<>[]) then begin
|
||||||
// do size bigger than the monitor workarea
|
// do size bigger than the monitor workarea
|
||||||
WorkArea:=Monitor.WorkareaRect;
|
WorkArea:=Monitor.WorkareaRect;
|
||||||
if akRight in Anchors then
|
if akRight in Anchors then
|
||||||
|
Loading…
Reference in New Issue
Block a user