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 ff5deba commit bb26273
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -907,8 +907,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 bb26273

Please sign in to comment.