Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions HMCL/src/main/java/org/jackhuang/hmcl/ui/FXUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -1663,4 +1663,8 @@ public static void useJFXContextMenu(TextInputControl control) {
e.consume();
});
}

public static void forceRadii(Region region, double radii) {
setOverflowHidden(region, radii * 2);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ public ModVersion(RemoteMod mod, RemoteMod.Version version, DownloadPage selfPag
scrollPane.setFitToWidth(true);
scrollPane.setFitToHeight(true);
FXUtils.smoothScrolling(scrollPane);
FXUtils.forceRadii(scrollPane, 4);
spinnerPane.setContent(scrollPane);
box.getChildren().add(spinnerPane);
VBox.setVgrow(spinnerPane, Priority.SOMETIMES);
Expand Down