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 Apr 12, 2019
1 parent b155c2f commit 6fb075f
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 6fb075f

Please sign in to comment.