Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to change canvas width and height full window ? #4

Open
asepwaee opened this issue Aug 26, 2023 · 3 comments
Open

how to change canvas width and height full window ? #4

asepwaee opened this issue Aug 26, 2023 · 3 comments

Comments

@asepwaee
Copy link

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

@luileito
Copy link
Owner

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

@asepwaee
Copy link
Author

@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 ?

@luileito
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants