@@ -427,18 +427,12 @@ protected void calculateLegendOffsets(RectF offsets) {
427
427
offsets .top += Math .min (mLegend .mNeededHeight ,
428
428
mViewPortHandler .getChartHeight () * mLegend .getMaxSizePercent ())
429
429
+ mLegend .getYOffset ();
430
-
431
- if (getXAxis ().isEnabled () && getXAxis ().isDrawLabelsEnabled ())
432
- offsets .top += getXAxis ().mLabelRotatedHeight ;
433
430
break ;
434
431
435
432
case BOTTOM :
436
433
offsets .bottom += Math .min (mLegend .mNeededHeight ,
437
434
mViewPortHandler .getChartHeight () * mLegend .getMaxSizePercent ())
438
435
+ mLegend .getYOffset ();
439
-
440
- if (getXAxis ().isEnabled () && getXAxis ().isDrawLabelsEnabled ())
441
- offsets .bottom += getXAxis ().mLabelRotatedHeight ;
442
436
break ;
443
437
444
438
default :
@@ -478,21 +472,21 @@ public void calculateOffsets() {
478
472
479
473
if (mXAxis .isEnabled () && mXAxis .isDrawLabelsEnabled ()) {
480
474
481
- float xlabelheight = mXAxis .mLabelRotatedHeight + mXAxis .getYOffset ();
475
+ float xLabelHeight = mXAxis .mLabelRotatedHeight + mXAxis .getYOffset ();
482
476
483
477
// offsets for x-labels
484
478
if (mXAxis .getPosition () == XAxisPosition .BOTTOM ) {
485
479
486
- offsetBottom += xlabelheight ;
480
+ offsetBottom += xLabelHeight ;
487
481
488
482
} else if (mXAxis .getPosition () == XAxisPosition .TOP ) {
489
483
490
- offsetTop += xlabelheight ;
484
+ offsetTop += xLabelHeight ;
491
485
492
486
} else if (mXAxis .getPosition () == XAxisPosition .BOTH_SIDED ) {
493
487
494
- offsetBottom += xlabelheight ;
495
- offsetTop += xlabelheight ;
488
+ offsetBottom += xLabelHeight ;
489
+ offsetTop += xLabelHeight ;
496
490
}
497
491
}
498
492
@@ -1224,7 +1218,7 @@ public boolean isDrawBordersEnabled() {
1224
1218
1225
1219
/**
1226
1220
* When enabled, the values will be clipped to contentRect,
1227
- * otherwise they can bleed outside the content rect.
1221
+ * otherwise they can bleed outside the content rect.
1228
1222
*
1229
1223
* @param enabled
1230
1224
*/
@@ -1234,7 +1228,7 @@ public void setClipValuesToContent(boolean enabled) {
1234
1228
1235
1229
/**
1236
1230
* When enabled, the values will be clipped to contentRect,
1237
- * otherwise they can bleed outside the content rect.
1231
+ * otherwise they can bleed outside the content rect.
1238
1232
*
1239
1233
* @return
1240
1234
*/
0 commit comments