Skip to content

Commit

Permalink
neededWidth should be enough here. formSize has no meaning globally.
Browse files Browse the repository at this point in the history
If more offset is needed - use extraOffsets, or adjust the maxSizePercent).
  • Loading branch information
danielgindi committed Aug 14, 2016
1 parent fadea4d commit 5e53bf3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Charts/Classes/Charts/PieRadarChartViewBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ public class PieRadarChartViewBase: ChartViewBase

if _legend != nil && _legend.enabled && !_legend.drawInside
{
var fullLegendWidth = min(_legend.neededWidth, _viewPortHandler.chartWidth * _legend.maxSizePercent)
fullLegendWidth += _legend.formSize + _legend.formToTextSpace
let fullLegendWidth = min(_legend.neededWidth, _viewPortHandler.chartWidth * _legend.maxSizePercent)

switch _legend.orientation
{
Expand Down

0 comments on commit 5e53bf3

Please sign in to comment.