Skip to content

Commit

Permalink
Fix first cell rendering (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jugen authored Jun 13, 2022
1 parent 8d57740 commit efa085d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/fxmisc/flowless/OrientationHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,10 @@ public double prefBreadth(Node node) {

@Override
public double prefLength(Node node, double breadth) {
if ( node.getScene() == null && node instanceof Parent ) {
Platform.runLater( () -> ((Parent) node).requestLayout() );
// Need to redo this as prefHeight maybe incorrect
}
return node.prefHeight(breadth);
}

Expand Down

0 comments on commit efa085d

Please sign in to comment.