|
7 | 7 | <?import javafx.scene.layout.GridPane?> |
8 | 8 | <?import javafx.scene.layout.HBox?> |
9 | 9 | <?import javafx.scene.layout.Region?> |
| 10 | +<?import javafx.scene.layout.RowConstraints?> |
10 | 11 | <?import javafx.scene.layout.VBox?> |
11 | 12 |
|
12 | | -<HBox id="cardPane" fx:id="cardPane" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"> |
| 13 | +<HBox id="cardPane" fx:id="cardPane" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1"> |
13 | 14 | <GridPane HBox.hgrow="ALWAYS"> |
14 | 15 | <columnConstraints> |
15 | 16 | <ColumnConstraints hgrow="SOMETIMES" minWidth="10" prefWidth="150" /> |
| 17 | + <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="150.0" /> |
16 | 18 | </columnConstraints> |
17 | 19 | <VBox alignment="CENTER_LEFT" minHeight="105" GridPane.columnIndex="0"> |
18 | 20 | <padding> |
19 | | - <Insets top="5" right="5" bottom="5" left="15" /> |
| 21 | + <Insets bottom="5" left="15" right="5" top="5" /> |
20 | 22 | </padding> |
21 | | - <HBox spacing="5" alignment="CENTER_LEFT"> |
| 23 | + <HBox alignment="CENTER_LEFT" prefWidth="142.0" spacing="5"> |
22 | 24 | <Label fx:id="id" styleClass="cell_big_label"> |
23 | 25 | <minWidth> |
24 | 26 | <!-- Ensures that the label text is never truncated --> |
25 | 27 | <Region fx:constant="USE_PREF_SIZE" /> |
26 | 28 | </minWidth> |
27 | 29 | </Label> |
28 | | - <Label fx:id="name" text="\$first" styleClass="cell_big_label" /> |
| 30 | + <Label fx:id="name" styleClass="cell_big_label" text="\$first" /> |
29 | 31 | </HBox> |
30 | 32 | <FlowPane fx:id="tags" /> |
31 | 33 | <Label fx:id="phone" styleClass="cell_small_label" text="\$phone" /> |
32 | 34 | <Label fx:id="address" styleClass="cell_small_label" text="\$address" /> |
33 | 35 | <Label fx:id="email" styleClass="cell_small_label" text="\$email" /> |
34 | 36 | </VBox> |
| 37 | + <VBox alignment="CENTER_LEFT" minHeight="105" GridPane.columnIndex="1"> |
| 38 | + <padding> |
| 39 | + <Insets bottom="5" left="15" right="5" top="5" /> |
| 40 | + </padding> |
| 41 | + <children> |
| 42 | + <HBox alignment="CENTER_LEFT" prefWidth="142.0" spacing="5"> |
| 43 | + <children> |
| 44 | + <Label fx:id="id1" styleClass="cell_big_label"> |
| 45 | + <minWidth> |
| 46 | + <Region fx:constant="USE_PREF_SIZE" /> |
| 47 | + </minWidth> |
| 48 | + </Label> |
| 49 | + <Label fx:id="name1" styleClass="cell_big_label" text="\$first" /> |
| 50 | + </children> |
| 51 | + </HBox> |
| 52 | + <FlowPane fx:id="tags1" /> |
| 53 | + <Label fx:id="phone1" styleClass="cell_small_label" text="\$phone" /> |
| 54 | + <Label fx:id="address1" styleClass="cell_small_label" text="\$address" /> |
| 55 | + <Label fx:id="email1" styleClass="cell_small_label" text="\$email" /> |
| 56 | + </children> |
| 57 | + </VBox> |
| 58 | + <rowConstraints> |
| 59 | + <RowConstraints /> |
| 60 | + </rowConstraints> |
35 | 61 | </GridPane> |
36 | 62 | </HBox> |
0 commit comments