Skip to content

Commit 11c2d5f

Browse files
authored
Merge pull request #180 from pwgit-create/gui_for_wsl_fixes
Layout fix
2 parents 452839c + b2eddb5 commit 11c2d5f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

AppWish/AppWish/src/main/java/pn/app_wish/AppWish.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,7 @@ public void start(Stage primaryStage) throws IOException {
106106
System.setProperty(SimpleLogger.DEFAULT_LOG_LEVEL_KEY, "DEBUG");
107107
Parent root = FXMLLoader.load(requireNonNull(getClass().getClassLoader().getResource(DEFAULT_FXML_FILE)));
108108
mainStage = primaryStage;
109-
mainStage.setFullScreen(false);
110109
mainStage.setResizable(false);
111-
primaryStage.setFullScreen(false);
112110
primaryStage.setResizable(false);
113111
primaryStage.setTitle(GUIConstants.DEFAULT_STAGE_TITLE);
114112
Scene scene = new Scene(root);

AppWish/AppWish/src/main/java/pn/app_wish/controller/AppHistoryController.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,15 @@ private void goToMainScene(ActionEvent ae) {
124124
this.executingJavaAppProcess.toHandle().destroy();
125125
}
126126
Pane pane;
127+
127128
try {
128129
pane = FXMLLoader.load(
129130
Objects.requireNonNull(getClass().getClassLoader().getResource(GUIConstants.DEFAULT_FXML_FILE)));
130131
} catch (IOException e) {
131132
throw new RuntimeException(e);
132133
}
134+
135+
pane.requestLayout();
133136
Scene scene = new Scene(pane);
134137
Stage stage = AppWish.getMainStage();
135138
stage.setScene(scene);

0 commit comments

Comments
 (0)