Skip to content

Commit

Permalink
Fixed double calculation of xAxis spacing.
Browse files Browse the repository at this point in the history
more fixes from commit 3928e28.
  • Loading branch information
kzmi committed Apr 21, 2017
1 parent 0af8681 commit 3dfa56b
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -426,18 +426,12 @@ protected void calculateLegendOffsets(RectF offsets) {
offsets.top += Math.min(mLegend.mNeededHeight,
mViewPortHandler.getChartHeight() * mLegend.getMaxSizePercent())
+ mLegend.getYOffset();

if (getXAxis().isEnabled() && getXAxis().isDrawLabelsEnabled())
offsets.top += getXAxis().mLabelRotatedHeight;
break;

case BOTTOM:
offsets.bottom += Math.min(mLegend.mNeededHeight,
mViewPortHandler.getChartHeight() * mLegend.getMaxSizePercent())
+ mLegend.getYOffset();

if (getXAxis().isEnabled() && getXAxis().isDrawLabelsEnabled())
offsets.bottom += getXAxis().mLabelRotatedHeight;
break;

default:
Expand Down

0 comments on commit 3dfa56b

Please sign in to comment.