Browse Source

Fixed TextField size in GenreStats.

Veloe 4 years ago
parent
commit
04778edac1

+ 1 - 1
src/main/java/com/moviesdb/BrowserController.java

@@ -634,7 +634,7 @@ public class BrowserController extends Controller {
             Parent root = loader.load();
             statsWindow = loader.getController();
             statsWindow.stage = new Stage();
-            statsWindow.stage.setScene(new Scene(root, 629, 561));
+            statsWindow.stage.setScene(new Scene(root, 729, 600));
             statsWindow.stage.initStyle(StageStyle.UNDECORATED);
             statsWindow.stage.setMinWidth(629); //+16
             statsWindow.stage.setMinHeight(561);

+ 1 - 1
src/main/resources/BrowserWindow.fxml

@@ -87,7 +87,7 @@
       </AnchorPane>
     <SplitPane dividerPositions="0.3392857142857143, 0.9955357142857143" focusTraversable="true" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="-1.0" prefWidth="-1.0" style="-fx-background-color: #121212; -fx-border-color: #121212;" stylesheets="@style.css" VBox.vgrow="ALWAYS">
       <items>
-        <AnchorPane fx:id="filterPane" maxWidth="0.0" minWidth="300.0" prefHeight="550.0" prefWidth="120.0" style="-fx-background-color: #212121;" SplitPane.resizableWithParent="false">
+        <AnchorPane fx:id="filterPane" maxWidth="0.0" minWidth="0.0" prefHeight="550.0" prefWidth="120.0" style="-fx-background-color: #212121;" SplitPane.resizableWithParent="false">
           <children>
             <Label alignment="CENTER" layoutX="14.0" layoutY="14.0" minWidth="60.0" prefWidth="-1.0" style="&#10;" text="Filter" textAlignment="CENTER" wrapText="false">
               <font>

+ 7 - 2
src/main/resources/GenreStatisticsWindow.fxml

@@ -10,6 +10,7 @@
 <?import javafx.scene.layout.VBox?>
 <?import javafx.scene.text.Font?>
 <?import javafx.scene.text.TextFlow?>
+<?import javafx.scene.control.ScrollPane?>
 
 <BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="0.0" prefHeight="553.0" prefWidth="616.0" stylesheets="@AddMovieWindowStyle.css" xmlns="http://javafx.com/javafx/16" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.moviesdb.GenreStatisticsController">
    <right>
@@ -76,7 +77,7 @@
                <AnchorPane minHeight="20.0" prefHeight="20.0" prefWidth="200.0" style="-fx-background-color: transparent;" />
                <AnchorPane prefHeight="385.0" prefWidth="600.0" style="-fx-background-color: transparent;" VBox.vgrow="ALWAYS">
                   <children>
-                     <PieChart fx:id="genrePie" layoutX="50.0" prefHeight="250.0" prefWidth="600.0" style="-fx-max-height: 600; -fx-max-width: 600;" stylesheets="@PieChartStyle.css" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
+                     <PieChart fx:id="genrePie" layoutX="50.0" minHeight="250.0" minWidth="600.0" prefHeight="250.0" prefWidth="600.0" style="-fx-max-height: 600; -fx-max-width: 600;" stylesheets="@PieChartStyle.css" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
                   </children>
                </AnchorPane>
                <AnchorPane prefHeight="120.0">
@@ -84,7 +85,11 @@
                      <HBox prefHeight="100.0" prefWidth="200.0" AnchorPane.bottomAnchor="17.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0">
                         <children>
                            <Pane prefHeight="200.0" prefWidth="200.0" HBox.hgrow="ALWAYS" />
-                           <TextFlow fx:id="statsTextBox" prefHeight="111.0" prefWidth="200.0" style="-fx-text-fill: #9F9F9F;" />
+                           <ScrollPane fitToHeight="true" fitToWidth="true" layoutX="14.0" layoutY="290.0" prefHeight="222.0" prefWidth="277.0" style="-fx-background-color: transparent;" AnchorPane.bottomAnchor="39.0" AnchorPane.topAnchor="290.0">
+                              <content>
+                                 <TextFlow fx:id="statsTextBox" prefHeight="222.0" prefWidth="277.0" style="-fx-background-color: #212121;" />
+                              </content>
+                           </ScrollPane>
                            <Pane prefHeight="200.0" prefWidth="200.0" HBox.hgrow="ALWAYS" />
                         </children>
                      </HBox>