maxHeight didn't account for the last label

https://github.com/danielgindi/Charts/pull/3900
This commit is contained in:
Daniel Cohen Gindi 2020-01-23 10:18:28 +02:00
parent 45240c3723
commit 34fefd28e1

View file

@ -703,8 +703,7 @@ public class Legend extends ComponentBase {
width += Utils.calcTextWidth(labelpaint, label);
if (i < entryCount - 1)
maxHeight += labelLineHeight + yEntrySpace;
maxHeight += labelLineHeight + yEntrySpace;
} else {
wasStacked = true;
width += formSize;