mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2026-01-04 01:22:46 +01:00
IDE: center lost window: min size 70x70, set WindowState to wsNormal
git-svn-id: trunk@42138 -
This commit is contained in:
parent
2d2d2abe02
commit
daa7994b98
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user