[英]Adobe flex how to set width & height of spark application or layout
如何使用flex 4.6 spark模板来设置应用程序的宽度和高度?
Put them into your Main MXML file like: 将它们放入您的Main MXML文件中,如下所示:
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
closing="appClosing(event)"
width="1280" height="720"
>
</s:WindowedApplication>
Assuming you want your application to take up the entire browser window you will include the following attributes in your topmost MXML tag: 假设您希望您的应用程序占据整个浏览器窗口,那么您将在最上面的MXML标签中包含以下属性:
width="100%"
height="100%"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.