Fixed dimension of lists
This commit is contained in:
@@ -177,7 +177,7 @@ public class MainFXMLController {
|
||||
private StackPane createCard(PlayableCard card, boolean withZoom, boolean withShadow, Region parent) {
|
||||
ImageView img = new ImageView(loadImage("/GUIImages/Fronts/card-" + card.getIdIMG() + ".png"));
|
||||
img.setPreserveRatio(true);
|
||||
img.fitHeightProperty().bind(parent.heightProperty().multiply(0.94));
|
||||
img.fitHeightProperty().bind(parent.heightProperty().multiply(0.90));
|
||||
addClip(img);
|
||||
StackPane wrapper = new StackPane(img);
|
||||
if (withShadow) addShadow(wrapper);
|
||||
@@ -263,7 +263,7 @@ public class MainFXMLController {
|
||||
myHand.getChildren().add(img);
|
||||
} else {
|
||||
Region placeholder = new Region();
|
||||
placeholder.prefHeightProperty().bind(myHand.heightProperty().multiply(0.94));
|
||||
placeholder.prefHeightProperty().bind(myHand.heightProperty().multiply(0.90));
|
||||
placeholder.prefWidthProperty().bind(placeholder.prefHeightProperty().multiply(0.675));
|
||||
placeholder.setStyle("-fx-background-color: transparent;");
|
||||
myHand.getChildren().add(placeholder);
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
</VBox.margin>
|
||||
</HBox>
|
||||
|
||||
<HBox fx:id="board" prefHeight="250" minHeight="250" maxHeight="250" styleClass="card-list" VBox.vgrow="NEVER">
|
||||
<HBox fx:id="board" prefHeight="300" minHeight="300" maxHeight="300" styleClass="card-list" VBox.vgrow="NEVER">
|
||||
<VBox.margin>
|
||||
<Insets top="5" right="5" bottom="5" left="5" />
|
||||
</VBox.margin>
|
||||
|
||||
Reference in New Issue
Block a user