关于FLEX 里控件宽度的一个问题
2010-11-02 19:51
423 查看
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:aggregatedDemond="com.sft.gec.view.trade.aggregatedDemond.*">
<mx:HBox>
<aggregatedDemond:BorrowsOverviewMcmp id="borrowsPane"/>
<aggregatedDemond:AllocationOverviewMcmp id="allocationPane"/>
</mx:HBox>
</mx:VBox>
BorrowsOverviewMcmp是
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:common="com.sft.gec.component.common.*"
xmlns="com.sft.gec.view.trade.aggregatedDemond.*"
width="100%" height="100%"
verticalScrollPolicy="off" horizontalScrollPolicy="off" >
<common:NotifyIndexChangingTabNavigator width="100%" height="100%"
paddingTop="0" paddingBottom="0" paddingLeft="0" paddingRight="0"
backgroundAlpha="0" borderThickness="0" creationPolicy="all">
<TabSingleInput label="Single" />
<TabBatchInput label="Batch" />
<TabNoDemandBorrows label="No Demand Borrows" />
</common:NotifyIndexChangingTabNavigator>
<mx:HBox id="buttonBar" x="{this.width - buttonBar.width}" horizontalGap="2">
<mx:Button label="Submit" height="22"/>
<mx:Button id="upload" styleName="downloadButton" width="24" height="24"
toolTip="Upload the file"/>
<mx:Button id="paste" styleName="downloadButton" width="24" height="24"
toolTip="Paste"/>
</mx:HBox>
</mx:Canvas>
里面控件的宽度是正常的,但若删掉AllocationOverview变成
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:aggregatedDemond="com.sft.gec.view.trade.aggregatedDemond.*">
<mx:HBox>
<aggregatedDemond:BorrowsOverviewMcmp id="borrowsPane"/>
</mx:HBox>
</mx:VBox>
则宽度就变得很小了,为什么??
xmlns:aggregatedDemond="com.sft.gec.view.trade.aggregatedDemond.*">
<mx:HBox>
<aggregatedDemond:BorrowsOverviewMcmp id="borrowsPane"/>
<aggregatedDemond:AllocationOverviewMcmp id="allocationPane"/>
</mx:HBox>
</mx:VBox>
BorrowsOverviewMcmp是
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:common="com.sft.gec.component.common.*"
xmlns="com.sft.gec.view.trade.aggregatedDemond.*"
width="100%" height="100%"
verticalScrollPolicy="off" horizontalScrollPolicy="off" >
<common:NotifyIndexChangingTabNavigator width="100%" height="100%"
paddingTop="0" paddingBottom="0" paddingLeft="0" paddingRight="0"
backgroundAlpha="0" borderThickness="0" creationPolicy="all">
<TabSingleInput label="Single" />
<TabBatchInput label="Batch" />
<TabNoDemandBorrows label="No Demand Borrows" />
</common:NotifyIndexChangingTabNavigator>
<mx:HBox id="buttonBar" x="{this.width - buttonBar.width}" horizontalGap="2">
<mx:Button label="Submit" height="22"/>
<mx:Button id="upload" styleName="downloadButton" width="24" height="24"
toolTip="Upload the file"/>
<mx:Button id="paste" styleName="downloadButton" width="24" height="24"
toolTip="Paste"/>
</mx:HBox>
</mx:Canvas>
里面控件的宽度是正常的,但若删掉AllocationOverview变成
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:aggregatedDemond="com.sft.gec.view.trade.aggregatedDemond.*">
<mx:HBox>
<aggregatedDemond:BorrowsOverviewMcmp id="borrowsPane"/>
</mx:HBox>
</mx:VBox>
则宽度就变得很小了,为什么??
相关文章推荐
- 一个关于多对话框和CListCtrl控件的问题(棘手)。
- 关于FLEX的一个显示小问题
- 关于Repeater控件的一个问题
- 遇见的又一个新问题,关于显示文章条目的时候,显示宽度的处理
- 关于flex中RichTextEditor控件,监听Ctrl+s事件和去除Ctrl+s按下时在RichTextEditor生成的不可知字符的问题
- 一个关于swfupload控件的问题
- 常量,字段,构造方法 调试 ms 源代码 一个C#二维码图片识别的Demo 近期ASP.NET问题汇总及对应的解决办法 c# chart控件柱状图,改变柱子宽度 使用C#创建Windows服务 C#服务端判断客户端socket是否已断开的方法 线程 线程池 Task .NET 单元测试的利剑——模拟框架Moq
- 一个关于.Net的SaveFileDialog控件(Winform)的有趣问题
- C#写的计数器控件 - 一个关于相对路径使用的问题
- 关于在 UITableView FooterView 中控件宽度设置问题
- Flex4 关于TabNavigator 内部控件的初始化延迟问题!
- 关于.Net 1.1 Windows Forms 控件的一个小问题
- html页面中关于一个table表格中设置上下2个td宽度一致的问题
- 关于多控件调用同一个事件的问题
- 关于table控件的一个疑难问题(涉及循环)
- 关于CS模式下,控制一个容器内控件的值问题
- android关于Listview中定义了子控件,子控件和item同时获取焦点的问题
- 关于MFC Listcontrol控件分类显示的问题
- 关于Apache2 VirtualHost二级域名只生效一个的问题
- 关于建立一个TCP服务端出现阻塞问题