Skip to content

Commit

Permalink
force children to take a maximum size of the stack
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsontom committed Feb 8, 2022
1 parent 1e0d996 commit 3b7f434
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,11 @@ public InternalFixableLazyStackPane(Predicate<CheckType> checkSupplier, boolean
public ObservableBooleanValue fixed() {
return this.fixed;
}


// Force children to not exceed the stack
@Override
protected void layoutChildren() {
getManagedChildren().forEach( c -> c.resizeRelocate(0, 0, getWidth(), getHeight()));
}
}
}

0 comments on commit 3b7f434

Please sign in to comment.