Skip to content

Commit

Permalink
Merge pull request #3900 from danielgindi/3860
Browse files Browse the repository at this point in the history
fix #3860. maxHeight didn't count the last label
  • Loading branch information
liuxuan30 authored Apr 12, 2019
2 parents 2896791 + 6fb075f commit 13623d0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Source/Charts/Components/Legend.swift
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,7 @@ open class Legend: ComponentBase
}

width += size.width

if i < entryCount - 1
{
maxHeight += labelLineHeight + yEntrySpace
}
maxHeight += labelLineHeight + yEntrySpace
}
else
{
Expand Down

0 comments on commit 13623d0

Please sign in to comment.