How to extend react sketch canvas in a way to make it scale responsively (e.g.: to its parent container) #28
-
Hi out there react sketch users and maintainers. Does anyone know how to set up RSC in a way so that the drawing scales responsively? |
Beta Was this translation helpful? Give feedback.
Answered by
vinothpandian
Jul 25, 2021
Replies: 1 comment
-
Hey @mtin79, You can set the SVG's viewBox property on the canvas Ref DOM node's firstChild to scale responsively |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vinothpandian
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @mtin79,
You can set the SVG's viewBox property on the canvas Ref DOM node's firstChild to scale responsively