Thanks. I tried changing the viewport width and height, and using
setBounds, but it doesn't seem to change anything.
What seems to happen is that it draws the screen properly for half a
second, then the right side gets clipped.
This is the code i'm using:
var supportsOrientationChange = "onorientationchange" in window,
orientationEvent = supportsOrientationChange ?
"orientationchange" : "resize";
window.addEventListener(orientationEvent, function() {
var canvas = me.video.getScreenCanvas();
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
me.game.viewport = new me.Viewport(0, 0, window.innerWidth,
window.innerHeight);
me.game.viewport.setBounds(window.innerWidth, window.innerHeight);
me.game.repaint();
}, false);
Thanks,
Tys