Fix checkstyle violations

This commit is contained in:
Clément Fournier
2019-01-14 00:23:37 +01:00
parent 69435d511a
commit 03ce9a3e48

View File

@ -53,19 +53,19 @@ public final class ToolbarTitledPane extends TitledPane {
// centered unless we bind the height, like follows
Val.wrap(toolBar.parentProperty())
.values()
.filter(Objects::nonNull)
.subscribe(parent -> {
// The title region is provided by the skin,
// this is the only way to access it outside of css
StackPane titleRegion = (StackPane) parent;
toolBar.maxHeightProperty().unbind();
toolBar.maxHeightProperty().bind(titleRegion.heightProperty());
toolBar.minHeightProperty().unbind();
toolBar.minHeightProperty().bind(titleRegion.heightProperty());
toolBar.prefHeightProperty().unbind();
toolBar.prefHeightProperty().bind(titleRegion.heightProperty());
});
.values()
.filter(Objects::nonNull)
.subscribe(parent -> {
// The title region is provided by the skin,
// this is the only way to access it outside of css
StackPane titleRegion = (StackPane) parent;
toolBar.maxHeightProperty().unbind();
toolBar.maxHeightProperty().bind(titleRegion.heightProperty());
toolBar.minHeightProperty().unbind();
toolBar.minHeightProperty().bind(titleRegion.heightProperty());
toolBar.prefHeightProperty().unbind();
toolBar.prefHeightProperty().bind(titleRegion.heightProperty());
});
}