Skip to content

Commit

Permalink
Removed double spacing for labelRotatedHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgindi committed Jan 26, 2020
1 parent 642d514 commit 33bfecf
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Source/Charts/Charts/BarLineChartViewBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -399,17 +399,9 @@ open class BarLineChartViewBase: ChartViewBase, BarLineScatterCandleBubbleChartD
{
case .top:
offsetTop += min(_legend.neededHeight, _viewPortHandler.chartHeight * _legend.maxSizePercent) + _legend.yOffset
if xAxis.isEnabled && xAxis.isDrawLabelsEnabled
{
offsetTop += xAxis.labelRotatedHeight
}

case .bottom:
offsetBottom += min(_legend.neededHeight, _viewPortHandler.chartHeight * _legend.maxSizePercent) + _legend.yOffset
if xAxis.isEnabled && xAxis.isDrawLabelsEnabled
{
offsetBottom += xAxis.labelRotatedHeight
}

default:
break
Expand Down

0 comments on commit 33bfecf

Please # to comment.