Skip to content

Commit 7c26060

Browse files
committed
Adjust GUI dimensions
GUI appears too large on laptop with smaller screen size as compared to an external monitor. Reducing the height of the GUI will help.
1 parent 61c1b22 commit 7c26060

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/resources/view/MainWindow.fxml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
<?import javafx.scene.layout.AnchorPane?>
77
<?import javafx.scene.layout.VBox?>
88

9-
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="750.0" prefWidth="500.0" xmlns="http://javafx.com/javafx/17" xmlns:fx="http://javafx.com/fxml/1" fx:controller="tsundere.gui.MainWindow">
9+
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="600.0" prefWidth="500.0" xmlns="http://javafx.com/javafx/17" xmlns:fx="http://javafx.com/fxml/1" fx:controller="tsundere.gui.MainWindow">
1010
<children>
11-
<TextField fx:id="userInput" layoutY="698.0" onAction="#handleUserInput" prefHeight="51.0" prefWidth="405.0" AnchorPane.bottomAnchor="1.0" />
12-
<Button style="-fx-background-color: powderblue" fx:id="sendButton" layoutX="405.0" layoutY="698.0" mnemonicParsing="false" onAction="#handleUserInput" prefHeight="51.0" prefWidth="95.0" text="Send" />
13-
<ScrollPane fx:id="scrollPane" hbarPolicy="NEVER" hvalue="1.0" prefHeight="697.0" prefWidth="500.0" vvalue="1.0">
11+
<TextField fx:id="userInput" layoutY="558.0" onAction="#handleUserInput" prefHeight="51.0" prefWidth="405.0" AnchorPane.bottomAnchor="1.0" />
12+
<Button style="-fx-background-color: powderblue" fx:id="sendButton" layoutX="405.0" layoutY="558.0" mnemonicParsing="false" onAction="#handleUserInput" prefHeight="51.0" prefWidth="95.0" text="Send" />
13+
<ScrollPane fx:id="scrollPane" hbarPolicy="NEVER" hvalue="1.0" prefHeight="557.0" prefWidth="500.0" vvalue="1.0">
1414
<content>
15-
<VBox style="-fx-background-color: powderblue" fx:id="dialogContainer" prefHeight="690.0" prefWidth="485.0" />
15+
<VBox style="-fx-background-color: powderblue" fx:id="dialogContainer" prefHeight="552.0" prefWidth="485.0" />
1616
</content>
1717
</ScrollPane>
1818
</children>

0 commit comments

Comments
 (0)