IDE: center lost window: min size 70x70, set WindowState to wsNormal

git-svn-id: trunk@42138 -
This commit is contained in:
mattias 2013-07-19 09:39:06 +00:00
parent 2d2d2abe02
commit daa7994b98

View File

@ -269,10 +269,11 @@ begin
NewBounds.Top:=(r.Top+r.Bottom-Form.Height) div 2
else
NewBounds.Top:=r.Top+50;
NewBounds.Right:=NewBounds.Left+Max(200,Form.Width);
NewBounds.Bottom:=NewBounds.Top+Max(200,Form.Height);
NewBounds.Right:=NewBounds.Left+Max(70,Form.Width);
NewBounds.Bottom:=NewBounds.Top+Max(70,Form.Height);
debugln(['TMainIDEBase.mnuCenterWindowItemClick New=',dbgs(NewBounds)]);
Form.BoundsRect:=NewBounds;
Form.WindowState:=wsNormal;
end;
break;
end;