Closed ivars-vids closed 10 years ago
Hi @ivars-vids , you don't need to use Q.setup() to resize the canvas, you can use Q.el which is a reference to the canvas element and just change its width/height.
Also Q.ctx is the canvas context :)
This is now fixed.
Thanks for your report.
When I call Q.setup() more than once, I use this as easiest way to resize canvas. After second, third Q.setup() call, it creates additional wrapper.
... var Q = Quintus().setup({ height: 100, width: 100 }) ... Q.setup({ maximize: true }); ...
... <div id="quintus_container" style="width: 100px; margin: 0px auto; position: relative;"> <div id="quintus_container" style="width: 550px; margin: 0px auto; position: relative;"> <canvas width="550" height="415" id="quintus" style="height: 415px; width: 550px; position: relative; outline: 0px none;" tabindex="0"></canvas> </div> </div> ...