设置弹性应用程序大小
我已经设置了应用程序容器的大小 width="1040" height="716"
当我运行应用程序时,我得到了应用程序的剪辑版本。我使用的是 1024 X 768 显示器。据我了解,应用程序的大小大于可用浏览器空间,因此我在哪里将应用程序设置为滚动以显示完整的应用程序。
尝试的方法:
- 为应用程序容器设置滚动策略(不起作用,因为浏览器需要滚动而不是应用程序)
- 在包装器html的body标签中设置scroll =“yes”。
- 在包装器 html 的 flashvars 的宽度和高度中设置大小。
目前问题还没有得到解决。任何帮助将不胜感激。
谢谢
I have set the size of the application container
width="1040" height="716"
When I run the application, I get a clipped version of the application. I am using a 1024 X 768 monitor. I understand that the size of the application is greater than than of the available browser space, so where do I set the application to have scroll to show the full application.
Methods tried:
- Set scroll policy for application container (will not work because the browser needs to have scrolls not application)
- Set scroll="yes" in body tag of the wrapper html.
- Set size in the width and height of the flashvars of the wrapper html.
Nothing has resolved the issue yet. Any help would be appreciated.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
问题出在正在生成的 html 包装器中。
html 有一行
正文 { 边距:0px; Overflow:hidden }
这是剪切内容。
我把它改为
正文 { 边距:0px;溢出:自动}
感谢您的帮助
The issue was in the html wrapper being generated.
The html had a line
body { margin: 0px; overflow:hidden }
this was clipping the content.
I changed it to
body { margin: 0px; overflow:auto }
Thanks for all your help
在你的mxml头部添加
verticalScrollPolicy =“auto”(使用自动完成来获取确切的单词)
同样对于
HorizonatalScrollPolicy
这决定是否允许应用程序显示滚动条。
in the head of you mxml add
verticalScrollPolicy="auto" (use autocomplete to get the exact words)
same for
horizonatalScrollPolicy
This decides if an application is allowed to show scroll bars.
但这对用户来说并不友好。通常,您应该不惜一切代价避免水平滚动(垂直滚动也可以)。您还多久会看到水平滚动的网页?
您不能调整布局使其水平适合,专为 1024 X 768 设计吗?如果水平方向不合适,请将其调整为垂直方向延伸。
But that's not user-friendly. Normally, you should avoid horzontal scrolling at any cost (vertical scrolling is fine). How often do you still see web pages with horizontal scrolling?
Can you not adjust the layout so that it fits horizontally, designed for 1024 X 768? If it doesn't fit horizontally, adjust it so that it extends vertically.