Skip to content

Commit

Permalink
Set filtersPane minHeight in FilterViewSkin and optimize imports
Browse files Browse the repository at this point in the history
In FilterViewSkin class, the minHeight of the filtersPane has been set using Region.USE_PREF_SIZE for a consistent look of the layout.
  • Loading branch information
dlemmermann committed Feb 12, 2024
1 parent 8cbeee0 commit c7172e3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import javafx.scene.layout.FlowPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Priority;
import javafx.scene.layout.Region;
import javafx.scene.layout.VBox;
import org.apache.commons.lang3.StringUtils;

Expand Down Expand Up @@ -60,6 +61,7 @@ public FilterViewSkin(FilterView<T> view) {
filtersPane.prefWrapLengthProperty().bind(view.widthProperty());
filtersPane.visibleProperty().bind(Bindings.isNotEmpty(filtersPane.getChildren()));
filtersPane.managedProperty().bind(Bindings.isNotEmpty(filtersPane.getChildren()));
filtersPane.setMinHeight(Region.USE_PREF_SIZE);

searchTextField.visibleProperty().bind(view.textFilterProviderProperty().isNotNull());
searchTextField.managedProperty().bind(view.textFilterProviderProperty().isNotNull());
Expand Down

0 comments on commit c7172e3

Please sign in to comment.