jsketch icon indicating copy to clipboard operation
jsketch copied to clipboard

how to change canvas width and height full window ?

Open asepwaee opened this issue 2 years ago • 3 comments

when i set width and height 100% the point of stroke not center with mouse mouse

asepwaee avatar Aug 26 '23 19:08 asepwaee

Have you tried to set the size (width and height canvas attributes) in absolute pixel values?

luileito avatar Aug 26 '23 21:08 luileito

@luileito yes i did it and working fine, but when i change to percent not working. i want to make the canvas responsive for every device width. is this packages support for doing that ?

asepwaee avatar Aug 28 '23 16:08 asepwaee

This isn't currently supported, but you can do it with JS: https://stackoverflow.com/a/39774800

luileito avatar Aug 28 '23 17:08 luileito