Skip to content

Commit 1db1b02

Browse files
committed
fix scroll widget issue
1 parent b4bff8e commit 1db1b02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/cleanroommc/modularui/widget/AbstractScrollWidget.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ public void onResized() {
7171
if (this.scroll.getScrollX() != null) {
7272
this.scroll.getScrollX().clamp(this.scroll);
7373
if (!this.keepScrollBarInArea) {
74-
getArea().width += this.scroll.getScrollY().getThickness();
74+
getArea().height += this.scroll.getScrollX().getThickness();
7575
}
7676
}
7777
if (this.scroll.getScrollY() != null) {
7878
this.scroll.getScrollY().clamp(this.scroll);
7979
if (!this.keepScrollBarInArea) {
80-
getArea().height += this.scroll.getScrollX().getThickness();
80+
getArea().width += this.scroll.getScrollY().getThickness();
8181
}
8282
}
8383
}

0 commit comments

Comments
 (0)