Skip to content

Commit

Permalink
Fix Virtualized height NPE (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jugen committed May 24, 2022
1 parent 3775a6c commit 8d57740
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/fxmisc/flowless/Virtualized.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
public interface Virtualized {

Val<Double> totalWidthEstimateProperty();
default double getTotalWidthEstimate() { return totalHeightEstimateProperty().getValue(); }
default double getTotalWidthEstimate() { return totalHeightEstimateProperty().getOrElse( 0.0 ); }

Val<Double> totalHeightEstimateProperty();
default double getTotalHeightEstimate() { return totalHeightEstimateProperty().getValue(); }
default double getTotalHeightEstimate() { return totalHeightEstimateProperty().getOrElse( 0.0 ); }

Var<Double> estimatedScrollXProperty();
default double getEstimatedScrollX() { return estimatedScrollXProperty().getValue(); }
Expand Down

0 comments on commit 8d57740

Please sign in to comment.