Resize the canvas content based on the device screen / container width #116
Unanswered
Angelo-Sterlo
asked this question in
Q&A
Replies: 2 comments 12 replies
-
Hey @Angelo-Sterlo, You can use the latest beta version to achieve this. You'll have to pass |
Beta Was this translation helpful? Give feedback.
5 replies
-
Can anyone give any hints how this could possibly be fixed or if it is going to be really hard to fix? I dont mind having a go but a little bit of background info could be usefull. withViewBox works until you start to draw as described above thank you anyway! 👏👏👏👏 |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If I draw something on the canvas from a desktop device, when I upload the path on a mobile react-sketch-canvas, it cuts out a part of the drawing, showing only the top left corner of the content.
Canvas drawing from desktop:

Canvas Drawing from Mobile:

I'm currently working with Ionic-React/Typescript.
Is there a way to keep the content visible when changing the canvas width and height?
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions