mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2025-01-19 08:36:27 +01:00
fixed the UI margin bug
This commit is contained in:
parent
4f6c27ccb1
commit
2cc5d5d820
@ -42,10 +42,13 @@ public class Main extends Application {
|
|||||||
|
|
||||||
primaryStage.getIcons().add(new Image(getClass().getResourceAsStream("G-EarthLogoSmaller.png")));
|
primaryStage.getIcons().add(new Image(getClass().getResourceAsStream("G-EarthLogoSmaller.png")));
|
||||||
|
|
||||||
primaryStage.setResizable(false);
|
|
||||||
|
|
||||||
primaryStage.setTitle("G-Earth " + version);
|
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.show();
|
||||||
primaryStage.getScene().getStylesheets().add(getClass().getResource("ui/bootstrap3.css").toExternalForm());
|
primaryStage.getScene().getStylesheets().add(getClass().getResource("ui/bootstrap3.css").toExternalForm());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user