Skip to content

How to set max-width on the Canvas? #149

Answered by dsblank
dsblank asked this question in Q&A
Discussion options

You must be logged in to vote

When I went back and just set canvas.style.width to "100%" and canvas.style.height to "auto" everything worked as expected. Sorry for the noise!

Replies: 3 comments 14 replies

Comment options

You must be logged in to vote
2 replies
@dsblank
Comment options

@dsblank
Comment options

Comment options

You must be logged in to vote
11 replies
@dsblank
Comment options

@martinRenou
Comment options

@dsblank
Comment options

@martinRenou
Comment options

@dsblank
Comment options

Comment options

You must be logged in to vote
1 reply
@martinRenou
Comment options

Answer selected by dsblank
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants