Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

Commit

Permalink
fix(fxml): Fix messages overflowing X
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloud7050 committed Sep 22, 2023
1 parent 3a6835a commit 749eba0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/view/MessageRow.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.HBox?>

<fx:root fx:id="messageRow" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefWidth="400.0" style="-fx-background-color: #DDFFFF;" type="HBox" xmlns="http://javafx.com/javafx/20.0.1" xmlns:fx="http://javafx.com/fxml/1">
<fx:root fx:id="messageRow" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefWidth="384" style="-fx-background-color: #DDFFFF;" type="HBox" xmlns="http://javafx.com/javafx/20.0.1" xmlns:fx="http://javafx.com/fxml/1">
<children>
<ImageView fx:id="picture" fitHeight="75.0" fitWidth="75.0" pickOnBounds="true" preserveRatio="true">
<image>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/view/Stage.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<Scene fx:id="scene">
<AnchorPane fx:id="anchorPane" prefHeight="600.0" prefWidth="400.0">
<children>
<ScrollPane fx:id="scrollPane" fitToWidth="true" hbarPolicy="NEVER" AnchorPane.bottomAnchor="35.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<ScrollPane fx:id="scrollPane" fitToWidth="true" hbarPolicy="NEVER" vbarPolicy="ALWAYS" AnchorPane.bottomAnchor="35.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<content>
<VBox fx:id="messagesHolder" />
</content></ScrollPane>
Expand Down

0 comments on commit 749eba0

Please sign in to comment.