Skip to content

Commit

Permalink
maxHeight didn't account for the last label
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgindi committed Jan 23, 2020
1 parent 45240c3 commit 34fefd2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -703,8 +703,7 @@ else if (wasStacked) {

width += Utils.calcTextWidth(labelpaint, label);

if (i < entryCount - 1)
maxHeight += labelLineHeight + yEntrySpace;
maxHeight += labelLineHeight + yEntrySpace;
} else {
wasStacked = true;
width += formSize;
Expand Down

0 comments on commit 34fefd2

Please sign in to comment.