Quintus icon indicating copy to clipboard operation
Quintus copied to clipboard

Add/refine screen "resize" event

Open benpaddlejones opened this issue 10 years ago • 1 comments

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/

benpaddlejones avatar May 21 '15 11:05 benpaddlejones

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.

danielocdh avatar Dec 29 '15 15:12 danielocdh