Skip to content

Commit

Permalink
防止自定义ui过小
Browse files Browse the repository at this point in the history
  • Loading branch information
MinRi2 committed Feb 9, 2024
1 parent d2b44cc commit b55b35b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/MinerTools/utils/ui/operator/SavedTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ protected void readSize(){
if(saveSize){
float width = MinerVars.settings.get(name + ".size.width", this.width);
float height = MinerVars.settings.get(name + ".size.height", this.height);

// 自定义大小缩放无法保证ui有至少的空间
width = Math.max(getMinWidth(), width);
height = Math.max(getMinHeight(), height);

setSize(width, height);
}
}
Expand Down

0 comments on commit b55b35b

Please sign in to comment.