Window dimension is dynamic now
This commit is contained in:
@@ -106,7 +106,6 @@ public class MainFXMLController {
|
|||||||
renderBoard();
|
renderBoard();
|
||||||
renderLower();
|
renderLower();
|
||||||
renderSidePanel();
|
renderSidePanel();
|
||||||
|
|
||||||
if (Objects.equals(old_state_username, controller.myUsername)) {
|
if (Objects.equals(old_state_username, controller.myUsername)) {
|
||||||
renderMyHand();
|
renderMyHand();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +1,23 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
<?import javafx.geometry.Insets?>
|
<?import javafx.geometry.Insets?>
|
||||||
<?import javafx.scene.control.Label?>
|
<?import javafx.scene.control.Label?>
|
||||||
<?import javafx.scene.layout.HBox?>
|
<?import javafx.scene.layout.HBox?>
|
||||||
<?import javafx.scene.layout.VBox?>
|
<?import javafx.scene.layout.VBox?>
|
||||||
|
<HBox fx:id="mainHBox"
|
||||||
<HBox fx:id="mainHBox" maxHeight="1080.0" maxWidth="1920.0" minHeight="-Infinity" minWidth="-Infinity" prefHeight="1080.0" prefWidth="1920.0" xmlns="http://javafx.com/javafx/26" xmlns:fx="http://javafx.com/fxml/1" fx:controller="it.polimi.ingsw.gc14.View.GUI.MainFXMLController" stylesheets="@styles.css">
|
maxHeight="Infinity" maxWidth="Infinity"
|
||||||
|
prefHeight="1080.0" prefWidth="1920.0"
|
||||||
|
xmlns="http://javafx.com/javafx/26"
|
||||||
|
xmlns:fx="http://javafx.com/fxml/1"
|
||||||
|
fx:controller="it.polimi.ingsw.gc14.View.GUI.MainFXMLController"
|
||||||
|
stylesheets="@styles.css">
|
||||||
<children>
|
<children>
|
||||||
|
|
||||||
|
<!-- VBox sinistra: si espande per riempire tutto lo spazio disponibile -->
|
||||||
<VBox prefHeight="1080.0" prefWidth="1486.0" fillWidth="false" alignment="CENTER">
|
<VBox alignment="CENTER"
|
||||||
|
fillWidth="false"
|
||||||
|
maxHeight="Infinity"
|
||||||
|
maxWidth="Infinity"
|
||||||
|
HBox.hgrow="ALWAYS">
|
||||||
<HBox.margin>
|
<HBox.margin>
|
||||||
<Insets top="5" right="5" bottom="5" left="5" />
|
<Insets top="5" right="5" bottom="5" left="5" />
|
||||||
</HBox.margin>
|
</HBox.margin>
|
||||||
@@ -37,8 +45,13 @@
|
|||||||
</children>
|
</children>
|
||||||
</VBox>
|
</VBox>
|
||||||
|
|
||||||
|
<!-- VBox destra: dimensione fissa, non si espande -->
|
||||||
<VBox fx:id="sidePanel" prefWidth="250.0" styleClass="side-panel">
|
<VBox fx:id="sidePanel"
|
||||||
|
prefWidth="250.0"
|
||||||
|
maxWidth="250.0"
|
||||||
|
minWidth="250.0"
|
||||||
|
HBox.hgrow="NEVER"
|
||||||
|
styleClass="side-panel">
|
||||||
<HBox.margin>
|
<HBox.margin>
|
||||||
<Insets bottom="10" left="10" right="10" top="10" />
|
<Insets bottom="10" left="10" right="10" top="10" />
|
||||||
</HBox.margin>
|
</HBox.margin>
|
||||||
@@ -67,5 +80,6 @@
|
|||||||
</HBox>
|
</HBox>
|
||||||
</children>
|
</children>
|
||||||
</VBox>
|
</VBox>
|
||||||
|
|
||||||
</children>
|
</children>
|
||||||
</HBox>
|
</HBox>
|
||||||
Reference in New Issue
Block a user