Skip to content

Commit

Permalink
[Fix] Fixed a bug with absolute positioning of widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
Brov3r committed Aug 10, 2024
1 parent 17df7c5 commit f76ba6c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- Fixed visibility area of fields, classes and methods in Widgets
- Fixed bugs when scrolling widgets
- Fixed a bug with absolute positioning of widgets

# AvrixLoader v1.4.0

Expand Down
8 changes: 8 additions & 0 deletions src/main/java/com/avrix/ui/widgets/Widget.java
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,10 @@ public int getHeight() {
*/
public void setX(int x) {
this.x = x;

if (parent == null) {
setXA(x);
}
}

/**
Expand All @@ -896,6 +900,10 @@ public void setX(int x) {
*/
public void setY(int y) {
this.y = y;

if (parent == null) {
setYA(y);
}
}

/**
Expand Down

0 comments on commit f76ba6c

Please sign in to comment.