Skip to content

Commit

Permalink
Made sure FilterView always has at least its minimum height equal to …
Browse files Browse the repository at this point in the history
…its preferred height.
  • Loading branch information
dlemmermann committed Dec 9, 2024
1 parent 5404065 commit e119736
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gemsfx/src/main/java/com/dlsc/gemsfx/FilterView.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import javafx.scene.Node;
import javafx.scene.control.Control;
import javafx.scene.control.Skin;
import javafx.scene.layout.Region;
import javafx.util.Callback;
import org.apache.commons.lang3.StringUtils;

Expand Down Expand Up @@ -62,6 +63,8 @@ public class FilterView<T> extends Control {
public FilterView() {
getStyleClass().add("filter-view");

setMinHeight(Region.USE_PREF_SIZE);

setFocusTraversable(false);

InvalidationListener updatePredicateListener = (Observable it) -> {
Expand Down

0 comments on commit e119736

Please sign in to comment.