Skip to content

Commit

Permalink
Merge pull request #810 from csmith/master
Browse files Browse the repository at this point in the history
Fix height paragraph box height calculation
  • Loading branch information
Jugen committed Mar 26, 2019
2 parents 94a7ee7 + 75577f9 commit c6ee8f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ protected double computePrefWidth(double ignoredHeight) {
@Override
protected double computePrefHeight(double width) {
Insets insets = getInsets();
double overhead = getGraphicPrefWidth() - insets.getLeft() - insets.getRight();
double overhead = getGraphicPrefWidth() + insets.getLeft() + insets.getRight();
return text.prefHeight(width - overhead) + insets.getTop() + insets.getBottom();
}

Expand Down

0 comments on commit c6ee8f1

Please sign in to comment.