Fixed: Vbox rows high, now are in the correct form
This commit is contained in:
@@ -162,7 +162,7 @@ public class MainFXMLController {
|
||||
// ==== ELEMENTS ====
|
||||
private StackPane createOrder(String num) {
|
||||
ImageView img = new ImageView(loadImage("/GUIImages/Orders/order-" + num + ".png"));
|
||||
img.fitHeightProperty().bind(board.sceneProperty().get().heightProperty().subtract(40).divide(4).multiply(0.94));
|
||||
img.fitHeightProperty().bind(board.sceneProperty().get().heightProperty().subtract(50).divide(4).multiply(0.94));
|
||||
img.setPreserveRatio(true);
|
||||
addClip(img);
|
||||
return new StackPane(img);
|
||||
@@ -171,7 +171,7 @@ public class MainFXMLController {
|
||||
private StackPane createSlot(Slot slot, boolean withZoom, boolean withShadow) {
|
||||
ImageView img = new ImageView(loadImage("/GUIImages/Fronts/card-" + slot.getSlotId() + ".png"));
|
||||
img.setPreserveRatio(true);
|
||||
img.fitHeightProperty().bind(board.sceneProperty().get().heightProperty().subtract(40).divide(4).multiply(0.94));
|
||||
img.fitHeightProperty().bind(board.sceneProperty().get().heightProperty().subtract(50).divide(4).multiply(0.94));
|
||||
addClip(img);
|
||||
StackPane wrapper = new StackPane(img);
|
||||
|
||||
@@ -193,7 +193,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.getScene().heightProperty().subtract(40).divide(4).multiply(0.90));
|
||||
img.fitHeightProperty().bind(parent.getScene().heightProperty().subtract(50).divide(4).multiply(0.90));
|
||||
addClip(img);
|
||||
StackPane wrapper = new StackPane(img);
|
||||
if (withShadow) addShadow(wrapper);
|
||||
@@ -279,7 +279,7 @@ public class MainFXMLController {
|
||||
myHand.getChildren().add(img);
|
||||
} else {
|
||||
Region placeholder = new Region();
|
||||
placeholder.prefHeightProperty().bind(myHand.getScene().heightProperty().subtract(40).divide(4).multiply(0.90));
|
||||
placeholder.prefHeightProperty().bind(myHand.getScene().heightProperty().subtract(50).divide(4).multiply(0.90));
|
||||
placeholder.prefWidthProperty().bind(placeholder.prefHeightProperty().multiply(0.675));
|
||||
placeholder.setStyle("-fx-background-color: transparent;");
|
||||
myHand.getChildren().add(placeholder);
|
||||
|
||||
Reference in New Issue
Block a user