关于滚动条是否隐藏的设置
本人菜鸟一只,在做Flex网页的时候不明白滚动条的设置问题
一般来说网页里肯定不喜欢层层叠叠的滚动条,所以基本上底层容器的horizontalScrollPolicy和verticalScrollPolicy我都设置为了off,但是我不是很明白容器嵌套时这个参数改变的规律,现在出现了一个问题:
我的页面结构是下面的样子:
当然,首先是登录界面,登录以后加载module,
<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute" width="100%" height="100%"
xmlns:win="com.cuc.ui.admin.*" creationComplete="init()">
<win:HomePage id="panHome" width="100%" height="100%" visible="true"/>
HomePage 里面有几个容器,
<mx:VBox width="100%" height="100%" paddingBottom="0" paddingLeft="0" paddingRight="0" paddingTop="0" >
<mx:HBox width="100%" horizontalAlign="right">
<mx:MenuBar id="menubar" labelField="@label" menuStyleName="MenuItem"
fontSize="12" color="0xffffff" height="40" width="100%"
fillColors="[ 0xffffff, 0x292929 ]"
itemClick="menuHandler(event)" dataProvider="{menubarCollection}"
itemRollOver="myMenuBar_itemRollOverHandler(event)" click="doClick(event)"/>
</mx:HBox>
<mx:HDividedBox width="100%" height="100%" horizontalScrollPolicy="off" verticalScrollPolicy="off">
<mx:Tree id="admin_accordion" dataProvider="{accordion}" labelField="@lable" width="0" height="100%" itemClick="TreeItemClick(event)"/>
<mx:Canvas id="homepans" width="100%" height="100%" horizontalScrollPolicy="off" verticalScrollPolicy="off">
<pan:HomeStatisticsPanel id="panHomeStatistics" visible="true" width="100%" height="100%"/>
<!--项目列表及导航栏-->
<pan:AdminPanel id="panAdmin" visible="false" width="100%" height="100%"/>
<!--项目信息录入-->
<pan:ProjectActionPanel id="panProjectAction" visible="false" width="100%" height="100%"/>
<!--项目预算信息-->
<win:BudegtReportPanel id="panBudget" visible="false" width="100%" height="100%"/>
</mx:Canvas>
</mx:HDividedBox>
</mx:VBox>