Setting Canvas Size To Fill The Body Is Adding Scrollbars To The Window
I am trying to set the width/height of a canvas element to fill the container it is in. Currently it works, but when it fills the body, scrollbars are added. let masterCanvas = doc
Solution 1:
The canvas element behaves like an image, so it is an inline element. You'll need to apply display: block
to the canvas.
Post a Comment for "Setting Canvas Size To Fill The Body Is Adding Scrollbars To The Window"