Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewauclair committed Aug 17, 2024
1 parent 7d3d678 commit 314500c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docking-api/src/ModernDocking/floating/FloatUtilsFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ private void setSizeAndLocation() {
Dimension size = new Dimension(referenceDockingWindow.getSize());



location.x -= padding;
location.y -= padding;

Expand All @@ -353,6 +354,15 @@ private void setSizeAndLocation() {

@Override
public void windowStateChanged(WindowEvent e) {
if (referenceDockingWindow instanceof JFrame) {
if (((JFrame) referenceDockingWindow).getExtendedState() == JFrame.MAXIMIZED_BOTH) {
setExtendedState(JFrame.MAXIMIZED_BOTH);
}
else {
setExtendedState(JFrame.NORMAL);
}
}

SwingUtilities.invokeLater(this::setSizeAndLocation);
}
}

0 comments on commit 314500c

Please sign in to comment.