mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 19:56:21 +02:00
ide: designer: let mediator decide the default size
This commit is contained in:
parent
c74b232d9a
commit
15853ffffd
@ -1316,7 +1316,7 @@ var
|
||||
FreeMediator:=true;
|
||||
end;
|
||||
end;
|
||||
if Mediator<>nil then
|
||||
if (Mediator<>nil) and (ParentComponent=nil) then
|
||||
begin
|
||||
NewSize:=Mediator.GetDefaultSize;
|
||||
if NewWidth=0 then
|
||||
@ -1536,9 +1536,6 @@ begin
|
||||
end
|
||||
else begin
|
||||
// non TControl
|
||||
if CompWidth <= 0 then CompWidth := 50;
|
||||
if CompHeight <= 0 then CompHeight := 50;
|
||||
|
||||
CompLeft := Max(Low(SmallInt), Min(High(SmallInt), CompLeft));
|
||||
CompTop := Max(Low(SmallInt), Min(High(SmallInt), CompTop));
|
||||
if Mediator=nil then
|
||||
|
Loading…
Reference in New Issue
Block a user