`
darrenzhu
  • 浏览: 810605 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Flex minWidth minHeight

阅读更多
minWidth
这个值并不是给组件自己用的,而是给组件的父容器用的,这是当父容器在布局时,推荐的最小的组件的宽度。请注意,如果你设置了该值的同时也设置了width,那么在布局时如果width大于minWidth,那么最终的宽度是width,如果width小于minWidth,那么最终的宽度是minWidth。以下是API文档。
The minimum recommended width of the component to be considered                
by the parent during layout. This value is in the                              
component's coordinates, in pixels. The default value depends on               
the component's implementation.                                                
                                                                     
If the application developer sets the value of minWidth,                    
the new value is stored in explicitMinWidth. The default value of minWidth     
does not change. As a result, at layout time, if                               
minWidth was explicitly set by the application developer, then the value of    
explicitMinWidth is used for the component's minimum recommended width.        
If minWidth is not set explicitly by the application developer, then the value o
measuredMinWidth is used.                                             
                                                                               
This value is used by the container in calculating                          
the size and position of the component.                                        
It is not used by the component itself in determining                          
its default size.                                                              
Thus this property may not have any effect if parented by                      
Container, or containers that don't factor in                                  
this property.                                                                 
Because the value is in component coordinates,                                 
the true minWidth with respect to its parent                      
is affected by the scaleX property.                       
                                                                                                                                        
分享到:
评论

相关推荐

    Flex4.5从浅入深

    - `minWidth` 和 `minHeight`:这两个属性用于设置应用的最小宽度和高度。 #### 二、Flex4.5与Flex3的区别 Flex4.5相比Flex3有显著的变化,特别是在组件库方面。Flex4.5引入了新的Spark组件库,它不仅提供了更现代...

    flex滤镜实例以及源码……

    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" minWidth="0" minHeight="0" backgroundColor="#FFFFFF" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#...

    Flex4插件安装和环境配置

    minWidth="955" minHeight="600"> <![CDATA[ import mx.controls.Alert; import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; protected function serv_result(event:ResultEvent):void{ ...

    Flex4中头部背景图片的Accordion

    minWidth="21" minHeight="21" alpha.disabled="0.5"> <!-- 定义各种状态 --> <!-- 背景图片定义 --> ('assets/pattern_147.gif')"/> <!-- 其他样式定义 --> ``` 在这个皮肤类中,`<s:Rect>...

    Flex4编写计算器小程序

    minWidth="955" minHeight="600"> ``` 这部分定义了一个Flex应用程序的基本结构。`<s:Application>`是应用程序的根元素,其中包含命名空间声明和最小尺寸设置。`<s:VerticalLayout>`定义了布局方式为垂直...

    WEB项目集成Flex3功能

    layout="absolute" minWidth="1024" minHeight="768"> <![CDATA[ import mx.controls.Alert; protected function testclick_clickHandler(event:MouseEvent):void { this.testtext.text = "Faint, faint, ...

    flex fusionchart 破解

    minWidth="955" minHeight="600" initialize="init()"> <fx:Declarations> <!-- 将非可视元素(例如服务、值对象)放在此处 --> </fx:Declarations> ...

    Myeclipse10搭建Flex+spring+mybatis架构

    minHeight="600" creationComplete="init();"> destination="employeeService" result="resultHandler(event);" fault="faultHandler(event);"/> <![CDATA[ import mx.controls.Alert; import mx....

    Flex创建用户界面

    minHeight="600"> text="XYZ Corporation Directory"/> ``` 4. **连接到服务器端数据服务:** - Flex应用程序通过调用服务器端的服务来获取数据。例如,这里提到...

    图文并茂、手把手教你怎么将Java项目与Flex4整合

    minWidth="955" minHeight="600"> <![CDATA[ import mx.controls.Alert; protected function button1_clickHandler(event:MouseEvent):void{ Alert.show("Hello World !",'提示'); } ]]> <!-- 将非...

    flex的Alert样式设置

    6. **尺寸**:如果需要调整Alert的大小,可以设置`width`和`height`属性,或者使用`minWidth`, `maxWidth`, `minHeight`和`maxHeight`来限制大小范围。 7. **动画效果**:虽然Alert组件默认没有动画效果,但可以...

    FLex连接数据

    minWidth="955" minHeight="600"> <![CDATA[ import mx.controls.Alert; import mx.events.FlexEvent; protected function empDg_creationCompleteHandler(event:FlexEvent):void { getEmployeesResult....

    Flex_4_界面设计实战

    minHeight="768"> 用户登录" fontFamily="Georgia" id="panel1"> <!-- 具体组件代码 --> ``` 这段代码展示了登录框的基本结构,包括面板的坐标、大小、标题等属性,以及内部包含的各种组件。 ##### 2.2 使用...

    Flex 拖拽图片代码

    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" minWidth="955" minHeight="600" borderStyle="solid" borderColor="#BCB8B7" creationComplete="initApp()"> // 代码逻辑 ...

    flex第一章到第七章学控件习

    minHeight="600"> <!-- 非可视元素放在此处 --> x="183" y="124" width="155" height="142" scaleMode="stretch" smooth="true" smoothingQuality="high" source="2008923113156903.png"/> ``` 在...

Global site tag (gtag.js) - Google Analytics