You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was unsure how to solve this, what worked for me is to have this inside the callback on a jquery window resize event:
Q.setup('canvas', {maximize: true});
Also you might need to manually adjust or override the width on the canvas container, because it is being set by quintus on the initial setup call, but not on resize setup calls.
Once canvas is drawn a resize event does not retrigger redrawing of the canvas. Thus if the screen is rotated often the canvas is scaled out of view.
Maybe this is a solution: http://www.williammalone.com/articles/html5-game-scaling/
The text was updated successfully, but these errors were encountered: