bernii/gauge.js

How to accommodate responsive designs and screen rotation/resizing?

ryangriggs opened this issue · 1 comments

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

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