flex/air 移动屏幕宽度 320px?
如何获得组件的正确宽度?例如,我放置了一个 Spark Image Component x:0; y:0;重量:100%; height:100%; 在我看来。
调试器显示 image.width
为 320px ....但我的手机宽度为 480px ...所有具有不同分辨率的模拟器预设设备在 100% image.width 时得到 320px
...与其他组件相同。
这是一个错误吗?为什么应用程序认为每个设备都具有相同的屏幕尺寸?
我知道功能上有正确的screenSize
。
How can I get the correct width of a component? For Example, I put a Spark Image Component x:0; y:0; w:100%; height:100%;
in my view.
The debugger shows image.width
to be 320px .... But my Phone has a width of 480px ... All simulator preset devices with its different resolutions gets 320px at 100% image.width
... same as other components.
Is this a bug? Why is the application thinking that every device has the same screen dimension?
I know there is the right screenSize
on Capabilities.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论