Skip to content

Commit

Permalink
fix #4897; fix bug which cropped line when value was zero
Browse files Browse the repository at this point in the history
  • Loading branch information
junedchhipa committed Jan 10, 2025
1 parent 6b1f162 commit 841e5f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/modules/axes/Grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ class Grid {
}

gl.dom.elGridRect = graphics.drawRect(
0,
0,
gl.gridWidth,
gl.gridHeight,
-strokeSize / 2 - 2,
-strokeSize / 2 - 2,
gl.gridWidth + strokeSize + 4,
gl.gridHeight + strokeSize + 4,
0,
'#fff'
)
Expand Down

0 comments on commit 841e5f0

Please sign in to comment.