I have a <canvas>
based game which I want to port to Air. The <canvas>
is 480x480
, now I want to make the window size fit to the canvas, normally one would do this with innerWidth
and innerHeight
. Even though air changes the values of both properties, the window size remains unchanged.
Of course, I could just specify the application size as 480x480
, but unfortunately this includes the window chrome(title bar etc.), so it will break as soon as someone on another system runs it, and I don't want scrollbars to overlay my game.