ModuleListComponent: Fixes resizing bugs

This commit is contained in:
noil 2020-12-24 13:29:26 -05:00
parent e2855cd611
commit bfbec6d09a
1 changed files with 3 additions and 1 deletions

View File

@ -96,7 +96,9 @@ public final class ModuleListComponent extends ResizableHudComponent {
if (this.getW() > MAX_WIDTH) {
this.setW(MAX_WIDTH);
}
} else if (this.currentSettings == null && this.getH() > this.getTotalHeight()) {
} else if (!this.isLocked() && this.currentSettings == null && this.getH() > this.getTotalHeight()) {
this.setH(this.getTotalHeight());
} else if (this.currentSettings == null && this.getH() > this.getTotalHeight() && this.getTotalHeight() > this.getInitialHeight()) {
this.setH(this.getTotalHeight());
}