Skip to content

Commit 3fdc90c

Browse files
author
Mohammad Rezaei
committed
Cover gaps between Y-axis background
1 parent 9aa87ae commit 3fdc90c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

KLineChartLib/src/main/java/com/github/fujianlian/klinechart/BaseKLineChartView.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,13 +260,13 @@ private void drawYAxisBackground(Canvas canvas) {
260260
// Draw a background for Y-axis labels
261261
canvas.drawRect(maxTextWidth, 0, mWidth, mMainRect.bottom, mBackgroundPaint);
262262

263-
// Draw a background for Y-axis labels
263+
// Draw a background for Vol labels
264264
if (mVolDraw != null)
265-
canvas.drawRect(maxTextWidth, mVolRect.top, mWidth, mVolRect.bottom, mBackgroundPaint);
265+
canvas.drawRect(maxTextWidth, mMainRect.bottom, mWidth, mVolRect.bottom, mBackgroundPaint);
266266

267-
// Draw a background for Y-axis labels
267+
// Draw a background for Child view labels
268268
if (mChildDraw != null)
269-
canvas.drawRect(maxTextWidth, mChildRect.top, mWidth, mChildRect.bottom, mBackgroundPaint);
269+
canvas.drawRect(maxTextWidth, mVolRect.bottom, mWidth, mChildRect.bottom, mBackgroundPaint);
270270
}
271271

272272
private void drawWatermark(Canvas canvas) {

0 commit comments

Comments
 (0)