flex/air 移动屏幕宽度 320px?

发布于 2024-12-26 02:13:41 字数 324 浏览 2 评论 0原文

如何获得组件的正确宽度?例如,我放置了一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文