mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[followup] Do not set bounds on IdeFrame when it's maximized
This commit is contained in:
@@ -516,7 +516,14 @@ public final class WindowManagerImpl extends WindowManagerEx implements NamedCom
|
||||
myDefaultFrameInfo.setBounds(FrameBoundsConverter.convertFromDeviceSpace(rawBounds));
|
||||
}
|
||||
|
||||
updateFrameBounds(frame);
|
||||
if (!(FrameState.isMaximized(frame.getExtendedState()) || FrameState.isFullScreen(frame)) ||
|
||||
!FrameState.isMaximized(myDefaultFrameInfo.getExtendedState())) // going to quit maximized
|
||||
{
|
||||
Rectangle bounds = myDefaultFrameInfo.getBounds();
|
||||
if (bounds != null) {
|
||||
frame.setBounds(bounds);
|
||||
}
|
||||
}
|
||||
frame.setExtendedState(myDefaultFrameInfo.getExtendedState());
|
||||
|
||||
frame.setProject(project);
|
||||
|
||||
Reference in New Issue
Block a user