Skip to content

Commit

Permalink
Revert "Added a fix for #3701"
Browse files Browse the repository at this point in the history
This reverts commit a517e14.
  • Loading branch information
4np committed Dec 15, 2020
1 parent a517e14 commit 7e1f6a0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Source/Charts/Components/AxisBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -134,17 +134,14 @@ open class AxisBase: ComponentBase
@objc open func getLongestLabel() -> String
{
var longest = ""
var currentWidth: CGFloat = 0

for i in entries.indices
{
let text = getFormattedLabel(i)
let textWidth = text.size(withAttributes: [NSAttributedString.Key.font: labelFont]).width

if longest.count <= text.count, currentWidth < textWidth
if longest.count < text.count
{
longest = text
currentWidth = textWidth
}
}

Expand Down

0 comments on commit 7e1f6a0

Please sign in to comment.