Closed TungVietLe closed 6 months ago
As discussed in PR #326. Turn out it was the body padding of the CSS of my website. It might be a small addition. I would suggest adding:
#326
canvas.style.pointerEvents = 'none' canvas.style.top = '0px' canvas.style.left = '0px'
so that the plotting-canvas would always span independently regardless of the client's CSS files.
plotting-canvas
Also, you are absolutely correct that it shifts and unshifts the canvas. Therefore, top and left equal to 0px would be sufficient.
top
left
0px
not a webgazer bug
As discussed in PR
#326
. Turn out it was the body padding of the CSS of my website. It might be a small addition. I would suggest adding:so that the
plotting-canvas
would always span independently regardless of the client's CSS files.Also, you are absolutely correct that it shifts and unshifts the canvas. Therefore,
top
andleft
equal to0px
would be sufficient.