【发布时间】:2009-11-04 16:01:13
【问题描述】:
我有以下应用程序,我试图在 TabNavigator 内的某处放置一个滚动条,最好是在最里面的 Vbox 上,但滚动条总是在面板上结束。是否有某种属性可以控制这一点?我以为 height=100% 会控制它,但它似乎不起作用。
样品在这里。你可以在上面查看源码: VBox Sample
这里是源代码:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" viewSourceURL="srcview/index.html">
<mx:Panel width="400" height="400">
<mx:TabNavigator width="100%" height="100%" creationPolicy="all">
<mx:VBox label="Tab 1" width="100%" height="100%">
<mx:ViewStack width="100%" height="100%">
<mx:VBox width="100%" height="100%">
<mx:Text width="100%" height="500" text="This box is taller than the Panel, but the scrollbar is on the window." />
</mx:VBox>
</mx:ViewStack>
</mx:VBox>
</mx:TabNavigator>
</mx:Panel>
</mx:Application>
【问题讨论】:
标签: apache-flex flex3