Skip to content

Commit

Permalink
Make GUI resizeable
Browse files Browse the repository at this point in the history
  • Loading branch information
NereusWB922 committed Sep 17, 2023
1 parent 5aa5944 commit f9ad198
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/resources/view/MainWindow.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>

<AnchorPane maxHeight="600.0" maxWidth="400.0" minHeight="-Infinity" minWidth="-Infinity" prefHeight="600.0" prefWidth="400.0" stylesheets="@../css/MainWindowStyle.css" xmlns="http://javafx.com/javafx/20.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="corgi.ui.MainWindow">
<AnchorPane prefHeight="600.0" prefWidth="400.0" stylesheets="@../css/MainWindowStyle.css" xmlns="http://javafx.com/javafx/20.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="corgi.ui.MainWindow">
<children>
<HBox layoutY="557.4000244140625" prefHeight="47.0" prefWidth="399.0" AnchorPane.bottomAnchor="-4.0">
<HBox layoutY="557.4000244140625" prefHeight="47.0" prefWidth="399.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0">
<children>
<TextField fx:id="userInput" onAction="#handleUserInput" prefHeight="44.0" prefWidth="324.0" />
<Button fx:id="sendButton" mnemonicParsing="false" onAction="#handleUserInput" prefHeight="44.0" prefWidth="82.0" text="Send" />
<TextField fx:id="userInput" onAction="#handleUserInput" prefHeight="47.0" prefWidth="330.0" HBox.hgrow="ALWAYS" />
<Button fx:id="sendButton" mnemonicParsing="false" onAction="#handleUserInput" prefHeight="47.0" prefWidth="82.0" text="Send" HBox.hgrow="ALWAYS" />
</children>
</HBox>
<ScrollPane fx:id="scrollPane" hbarPolicy="NEVER" hvalue="1.0" prefHeight="557.0" prefWidth="400.0" stylesheets="@../css/MainWindowStyle.css" vvalue="1.0">
<ScrollPane fx:id="scrollPane" fitToHeight="true" fitToWidth="true" hbarPolicy="NEVER" hvalue="1.0" prefHeight="553.0" prefWidth="400.0" stylesheets="@../css/MainWindowStyle.css" vvalue="1.0" AnchorPane.bottomAnchor="47.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<content>
<VBox fx:id="dialogContainer" prefHeight="563.0" prefWidth="388.0" />
<VBox fx:id="dialogContainer" prefHeight="557.0" prefWidth="398.0" />
</content>
</ScrollPane>
</children>
Expand Down

0 comments on commit f9ad198

Please sign in to comment.