From 9da0bd5b643a8ac64e10a4c28a7c0b90ed623a89 Mon Sep 17 00:00:00 2001 From: OmicronElement Date: Tue, 1 Nov 2016 02:44:24 -0500 Subject: [PATCH] Include label text margins when isValueLabelBackgroundEnabled = false --- .../lib/hellocharts/renderer/AbstractChartRenderer.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/hellocharts-library/src/lecho/lib/hellocharts/renderer/AbstractChartRenderer.java b/hellocharts-library/src/lecho/lib/hellocharts/renderer/AbstractChartRenderer.java index dc8ddcfd..5ca26140 100644 --- a/hellocharts-library/src/lecho/lib/hellocharts/renderer/AbstractChartRenderer.java +++ b/hellocharts-library/src/lecho/lib/hellocharts/renderer/AbstractChartRenderer.java @@ -113,13 +113,9 @@ protected void drawLabelTextAndBackground(Canvas canvas, char[] labelBuffer, int } canvas.drawRect(labelBackgroundRect, labelBackgroundPaint); - - textX = labelBackgroundRect.left + labelMargin; - textY = labelBackgroundRect.bottom - labelMargin; - } else { - textX = labelBackgroundRect.left; - textY = labelBackgroundRect.bottom; } + textX = labelBackgroundRect.left + labelMargin; + textY = labelBackgroundRect.bottom - labelMargin; canvas.drawText(labelBuffer, startIndex, numChars, textX, textY, labelPaint); }