Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
butz
· 1y ago · 0 comments
Add "display:block;" to canvas to fix the issue with vertical scroll appearing. Also, you might want to consider looking into vh and vw units to fill canvas to viewport without using javascript.
Comments
[–]
skykooler
1y ago
Is there a reason to avoid using javascript for canvas layout considering you need javascript to draw on the canvas in the first place?
[–]
zebproj
1y ago
Thanks, I'll look into it