应用程序和浏览器中 Flex4.5 应用程序的滚动条
我整个晚上都在谷歌搜索。要么我眼瞎,要么我运气不好。
我正在 Flash Builder 4.5 中开发一个应用程序来控制服务器应用程序,也不是传统的网站。一切都是 Spark,我设置了 minHeight 和 minWidth-Properties ,因为我有一个图像和导航器,当浏览器窗口滑动得比 min-Properties 小时,就会出现奇怪的效果。
内容和滚动条已经受父容器控制,这不是问题。
摘要:我对 upToDate 应用程序的期望是: 当 Browserwindow 大于 min-Properties,但对于内容而言太小时,应用程序或容器应控制滚动条。
如果浏览器窗口小于最小属性,我希望浏览器出现滚动条。我认为,在这种情况下,html 包装器需要有关最小属性的知识。
你能给我一个提示,我能做什么,我符合预期的行为吗?
多谢 坦率
I'm googeling the whole evening. Either I'm blind or have no luck.
I'm developing a Application in Flash Builder 4.5 to control an server application, also not a classical Website. All is Spark and I set the minHeight and minWidth-Properties for the , because i have an Image and Navigators, and there becomes a strange effect, when the browserwindow is sliding smaller that the min-Properties.
The content and there scrollbars are already controlled over the parent containers, thats not the probelm.
Summary: What i expect from a upToDate-Application is:
When the Browserwindow is larger than the min-Properties, but too small for the content, the Application respectively the container should control the scroll bars.
If is the Browser-Window smaller than the min-Properties, i expecting scollbars from the browser. I think, in this case, the html-wrapper needs knowledge about the min-properties.
Can you give me a hint, what i can do, that i fit the expecting behavior?
Thanks a lot
Frank
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以将组件包装在滚动条中(VScrollBar 似乎足够了)或将组件定义为滚动条视图端口:
You can either wrap your components in a scrollbar (VScrollBar seems adequate) or define your components as a scrollbar view port:
据我了解,该应用可以分为3个层次:
HTML 包装器 > (闪光)应用> (Flash) 内容
这是您想要实现的吗:如果应用程序的大小大于 HTML 包装器的大小(浏览器窗口大小),则使用浏览器的滚动条;如果内容的大小大于应用程序的大小,是否使用应用程序的滚动条?
我没有完全理解 Adobe 的默认 html 模板,但可以肯定的是,它会禁用浏览器滚动条。构建我自己的 html 模板是我选择的方式。默认情况下,如果浏览器窗口无法显示
div
的内容,浏览器将自动显示滚动条。要在内容区域太大时启用应用程序滚动条,只需将内容包装到
Scroller
中即可。或者,您可以将其放入GroupBase
组件中,并将clipAndEnableScrolling
属性设置为true
,然后像 user294702 建议的那样显式定义 ScrollBar。As I understand, the application can be seen in 3 levels:
HTML Wrapper > (Flash) Application > (Flash) Content
Is it what you want to achieve: If Application's size is bigger than HTML wrapper's (browser window size), use Browser's scroll bar; if Content's size is bigger than Application's size, use Application's scroll bar?
I didn't completely digest the Adobe's default html-template, but one thing for sure is that it disables the browser scrollbar. Building my own html-template is the way I chose. And by default, if the browser window cannot display content of a
div
, browser will automatically show the scroll bars.To enable Application scroll bars while Content area is too large, just wrap the Content into a
Scroller
. Or you can put it into aGroupBase
component withclipAndEnableScrolling
property set totrue
, then explicitly define ScrollBar like user294702 suggested.