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 accommodate responsive designs and screen rotation/resizing? #241

Open
ryangriggs opened this issue Feb 24, 2021 · 1 comment
Open

Comments

@ryangriggs
Copy link

I'm trying to implement gauges in a responsive design that should support tablets/phones in landscape/portrait view.
However, when I change the orientation, the gauge appears pixelated due to using the previous canvas size. How can I force the gauge to redraw to the new canvas size?
I set the canvas height and width to "auto" and also called the render() function on resize, but it doesn't seem to do anything.

Thanks

@AntonKremer
Copy link

Any solution? I would be interested in a solution as well.
Due to a responsive design, I would like to change the size of the canvas & and looking for a "force update" solution (everything is redrawn).

Best regards

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