Skip to content

Commit 3928e28

Browse files
authored
Fixed double calculation of xAxis spacing
1 parent 00f3605 commit 3928e28

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎MPChartLib/src/main/java/com/github/mikephil/charting/charts/BarLineChartBase.java‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -397,18 +397,12 @@ protected void calculateLegendOffsets(RectF offsets) {
397397
offsets.top += Math.min(mLegend.mNeededHeight,
398398
mViewPortHandler.getChartHeight() * mLegend.getMaxSizePercent())
399399
+ mLegend.getYOffset();
400-
401-
if (getXAxis().isEnabled() && getXAxis().isDrawLabelsEnabled())
402-
offsets.top += getXAxis().mLabelRotatedHeight;
403400
break;
404401

405402
case BOTTOM:
406403
offsets.bottom += Math.min(mLegend.mNeededHeight,
407404
mViewPortHandler.getChartHeight() * mLegend.getMaxSizePercent())
408405
+ mLegend.getYOffset();
409-
410-
if (getXAxis().isEnabled() && getXAxis().isDrawLabelsEnabled())
411-
offsets.bottom += getXAxis().mLabelRotatedHeight;
412406
break;
413407

414408
default:

0 commit comments

Comments
 (0)