Skip to content

Commit

Permalink
Update GFrame.java
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalgust committed Dec 20, 2024
1 parent 176d401 commit 06503f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions extlib/xgui/src/main/java/org/mini/gui/GFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,12 @@ public void validLocation() {
if (getY() > parent.getY() + parent.getH() - 30) {
setLocation(getLocationLeft(), parent.getH() - 30);
}
if (getW() > parent.getW()) {
setLocation(0, getLocationTop());
}
if (getH() > parent.getH()) {
setLocation(getLocationLeft(), 0);
}
}

@Override
Expand Down

0 comments on commit 06503f2

Please sign in to comment.