Stops resizing when over ModuleListComponent max width
This commit is contained in:
parent
d93601220c
commit
e68943cf90
|
@ -99,6 +99,7 @@ public final class ModuleListComponent extends ResizableHudComponent {
|
||||||
|
|
||||||
if (this.getW() > MAX_WIDTH) {
|
if (this.getW() > MAX_WIDTH) {
|
||||||
this.setW(MAX_WIDTH);
|
this.setW(MAX_WIDTH);
|
||||||
|
this.setResizeDragging(false);
|
||||||
}
|
}
|
||||||
} else if (!this.isLocked() && this.currentSettings == null && this.getH() > this.getTotalHeight()) {
|
} else if (!this.isLocked() && this.currentSettings == null && this.getH() > this.getTotalHeight()) {
|
||||||
this.setH(this.getTotalHeight());
|
this.setH(this.getTotalHeight());
|
||||||
|
|
Loading…
Reference in New Issue