private double getGap() { return (getListView() instanceof JFXListView) ? (((JFXListView<?>) getListView()).isExpanded() ? ((JFXListView<?>) getListView()) .currentVerticalGapProperty() .get() : 0) : 0; } }
private double estimateHeight() { // compute the border/padding for the list double borderWidth = snapVerticalInsets(); // compute the gap between list cells JFXListView<T> listview = (JFXListView<T>) getSkinnable(); double gap = listview.isExpanded() ? ((JFXListView<T>) getSkinnable()).getVerticalGap() * (getSkinnable().getItems() .size()) : 0; // compute the height of each list cell double cellsHeight = 0; for (int i = 0; i < flow.getCellCount(); i++) { ListCell<T> cell = flow.getCell(i); cellsHeight += cell.getHeight(); } return cellsHeight + gap + borderWidth; }
if (isExpanded()) { expand(); } else {
private double getGap() { return (getListView() instanceof JFXListView) ? (((JFXListView<?>) getListView()).isExpanded() ? ((JFXListView<?>) getListView()) .currentVerticalGapProperty() .get() : 0) : 0; } }
private double estimateHeight() { // compute the border/padding for the list double borderWidth = snapVerticalInsets(); // compute the gap between list cells JFXListView<T> listview = (JFXListView<T>) getSkinnable(); double gap = listview.isExpanded() ? ((JFXListView<T>) getSkinnable()).getVerticalGap() * (getSkinnable().getItems() .size()) : 0; // compute the height of each list cell double cellsHeight = 0; for (int i = 0; i < flow.getCellCount(); i++) { ListCell<T> cell = flow.getCell(i); cellsHeight += cell.getHeight(); } return cellsHeight + gap + borderWidth; }
if (isExpanded()) { expand(); } else {