Skip to content

Commit

Permalink
fix #3860. maxHeight didn't count the last label
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxuan30 committed Mar 15, 2019
1 parent ad26e63 commit fd04524
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 @@ -271,11 +271,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 fd04524

Please sign in to comment.