mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-13 05:46:59 -04:00
fix: add scrollbar for GameCrashWindow (#3723)
Shows a scroll bar when needed to prevent user misinterpretation when there is too much information.
This commit is contained in:
parent
dbf519b435
commit
cf56c8035b
@ -400,7 +400,7 @@ public class GameCrashWindow extends Stage {
|
|||||||
ScrollPane reasonPane = new ScrollPane(reasonTextFlow);
|
ScrollPane reasonPane = new ScrollPane(reasonTextFlow);
|
||||||
reasonPane.setFitToWidth(true);
|
reasonPane.setFitToWidth(true);
|
||||||
reasonPane.setHbarPolicy(ScrollPane.ScrollBarPolicy.NEVER);
|
reasonPane.setHbarPolicy(ScrollPane.ScrollBarPolicy.NEVER);
|
||||||
reasonPane.setVbarPolicy(ScrollPane.ScrollBarPolicy.NEVER);
|
reasonPane.setVbarPolicy(ScrollPane.ScrollBarPolicy.AS_NEEDED);
|
||||||
|
|
||||||
gameDirPane.setPadding(new Insets(8));
|
gameDirPane.setPadding(new Insets(8));
|
||||||
VBox.setVgrow(gameDirPane, Priority.ALWAYS);
|
VBox.setVgrow(gameDirPane, Priority.ALWAYS);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user