Skip to content

Commit

Permalink
Merge pull request #475 from dlsc-software-consulting-gmbh/fix-separa…
Browse files Browse the repository at this point in the history
…tor-visibility-issue

Separator Visibility Issue between Button 1 and Button 2
  • Loading branch information
dlemmermann authored Sep 15, 2023
2 parents 54d895a + 69172c6 commit 7bdb081
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@ public TileView(T item) {
button1.managedProperty().bind(button1.visibleProperty());
button1.visibleProperty().bind(button1TextProperty().isNotEmpty().or(button1GraphicProperty().isNotNull()));

Separator separator1 = new Separator(Orientation.VERTICAL);
separator1.managedProperty().bind(button1.visibleProperty());
separator1.visibleProperty().bind(button1.visibleProperty());

button2 = new Button();
button2.setFocusTraversable(false);
button2.getStyleClass().addAll("bg-transparent-button", "button2");
Expand All @@ -121,6 +117,10 @@ public TileView(T item) {
button2.managedProperty().bind(button2.visibleProperty());
button2.visibleProperty().bind(button2TextProperty().isNotEmpty().or(button2GraphicProperty().isNotNull()));

Separator separator1 = new Separator(Orientation.VERTICAL);
separator1.managedProperty().bind(button1.visibleProperty());
separator1.visibleProperty().bind(button1.visibleProperty().and(button2.visibleProperty()));

Separator separator2 = new Separator(Orientation.VERTICAL);
separator2.managedProperty().bind(button2.visibleProperty());
separator2.visibleProperty().bind(button2.visibleProperty());
Expand Down

0 comments on commit 7bdb081

Please sign in to comment.