Skip to content

How to extend react sketch canvas in a way to make it scale responsively (e.g.: to its parent container) #28

Answered by vinothpandian
mtin79 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @mtin79,

You can set the SVG's viewBox property on the canvas Ref DOM node's firstChild to scale responsively

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vinothpandian
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