Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
RetGal committed Aug 12, 2024
1 parent 5f006fe commit 5432170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/mpo/dayon/common/gui/common/BaseFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private void setupWindow() {
this.dimension = new Dimension(Math.max(configuration.getWidth(), frameType.getMinWidth()),
Math.max(configuration.getHeight(), frameType.getMinHeight()));
final Rectangle maximumWindowBounds = GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds();
this.position = new Position( configuration.getX() + dimension.width < maximumWindowBounds.width ? configuration.getX() : maximumWindowBounds.width - dimension.width,
this.position = new Position(configuration.getX() + dimension.width < maximumWindowBounds.width ? configuration.getX() : maximumWindowBounds.width - dimension.width,
configuration.getY() + dimension.height < maximumWindowBounds.height ? configuration.getY() : maximumWindowBounds.height - dimension.height);
this.setSize(dimension.width, dimension.height);
this.setLocation(position.getX(), position.getY());
Expand Down

0 comments on commit 5432170

Please sign in to comment.