ide: designer: use mediator default size only if none given

This commit is contained in:
mattias 2024-10-09 10:57:38 +02:00
parent 2c5dd45f28
commit c74b232d9a

View File

@ -1319,7 +1319,9 @@ var
if Mediator<>nil then
begin
NewSize:=Mediator.GetDefaultSize;
if NewWidth=0 then
NewWidth:=NewSize.X;
if NewHeight=0 then
NewHeight:=NewSize.Y;
end;
end;