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:
3gf8jv4dv 2025-03-08 16:32:54 +08:00 committed by GitHub
parent dbf519b435
commit cf56c8035b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);