Skip to content
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.

Commit

Permalink
PersonListCard.fxml: Remove unneeded child HBox
Browse files Browse the repository at this point in the history
The id and name label in PersonListCard is wrapped around two parent
HBoxes.

This is not necessary.

Let's remove the unneeded child HBox.
  • Loading branch information
MightyCupcakes committed Mar 25, 2017
1 parent 0e6f1b5 commit ffd64bd
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/main/resources/view/PersonListCard.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,13 @@
<Insets bottom="5" left="15" right="5" top="5" />
</padding>
<HBox spacing="5" alignment="CENTER_LEFT">
<HBox>
<Label fx:id="id" styleClass="cell_big_label">
<minWidth>
<!-- Ensures that the label text is never truncated -->
<Region fx:constant="USE_PREF_SIZE" />
</minWidth>
</Label>
<Label fx:id="name" text="\$first" styleClass="cell_big_label"/>
</HBox>
<Label fx:id="id" styleClass="cell_big_label">
<minWidth>
<!-- Ensures that the label text is never truncated -->
<Region fx:constant="USE_PREF_SIZE" />
</minWidth>
</Label>
<Label fx:id="name" text="\$first" styleClass="cell_big_label"/>
</HBox>
<FlowPane fx:id="tags" />
<Label fx:id="phone" styleClass="cell_small_label" text="\$phone" />
Expand Down

0 comments on commit ffd64bd

Please sign in to comment.