开发者

Set default screen size in AIR

I am writing an AIR application with HTML/JavaScript in Dreamweaver and I am trying to set the initial window size. I tried using this in the HTML:

<body onload="initialScreenSize(500,300)">

and then in the JavaScript:

function initialScreenSize(width,height)
{
       window.resizeTo(width,height);
}

This 开发者_如何学Pythonworks but the screen initially displays at the default size (something like 800 x 600) then a fraction of a second later changes to what I specified above. I don't like the way this looks.

Is there any way to set the default screen size?


I found where to set this:

In the Dreamweaver menu bar go to: Site/AIR Application Settings...

Then midway down the window there are window size settings.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜