fixed the UI margin bug

This commit is contained in:
sirjonasxx 2021-07-10 23:03:32 +02:00
parent 4f6c27ccb1
commit 2cc5d5d820

View File

@ -42,10 +42,13 @@ public class Main extends Application {
primaryStage.getIcons().add(new Image(getClass().getResourceAsStream("G-EarthLogoSmaller.png")));
primaryStage.setResizable(false);
primaryStage.setTitle("G-Earth " + version);
primaryStage.setScene(new Scene(root, 650, 295));
// https://stackoverflow.com/questions/20732100/javafx-why-does-stage-setresizablefalse-cause-additional-margins
// primaryStage.setScene(new Scene(root, 650, 295));
primaryStage.setScene(new Scene(root));
primaryStage.setResizable(false);
primaryStage.sizeToScene();
primaryStage.show();
primaryStage.getScene().getStylesheets().add(getClass().getResource("ui/bootstrap3.css").toExternalForm());