`
darrenzhu
  • 浏览: 782397 次
  • 性别: 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.                       
                                                                                                                                        
分享到:
评论

相关推荐

    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="[#...

    flex fusionchart 破解

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

    EXT搜索面板

    minWidth: 180, layout: { type: 'form', labelWidth: 30 } } }, items: [{ items: [{ flex: 1, items: [me.ReservationDate] }, { flex: 1, items: [me.ReviewDate] }, { flex: 1, items: [me....

    高稳定1.3414μm TEM

    分析研究了1.3414μm Nd3+:YAP连续激光器波动的原因,探索了抑制波动的技术,研制成功高稳定 1.3414μm TEM00模激光器.激光输出功率5.3W,在0~25kHz频率范围内波动 ≤±O.87%,未观察到由弛豫振荡引起的尖峰,激光接近线...

    simpleImageTool1.3功能全面的java缩放水印库

    impleImageTool1.3主要在最近写一个编辑工具时发现了不足,进行了些改进添加控制小于指定的尺寸不打水印 通过 waterMarkerMin(int minwidth, int minheight)设置,修正上一版有个地方流没关闭,现在更好用。...

    WPF Window Resizer

    在codeproject的源码基础上修改了以下...3、对窗体的MinWidth、MinHeight的设置无响应 里面有两个项目,一个是WindowResizer,另一个是自定义窗体(有前者的条用方法) 可以看下源码,如果觉得不好,欢迎反馈问题!

    可以实现图片放大的js代码

    img.width=img.minwidth; img.height=img.minheight; img.left=0; img.top=0; img.style.width=img.minwidth+'px'; img.style.height=img.minheight+'px'; img.style.left='0px'; img.style.top='0px'; ...

    flexgrid参数介绍

    minwidth: 30, //列的最小宽度 minheight: 80, //列的最小高度 resizable: true, //是否可伸缩 url: false, //ajax方式对应的url地址 method: ‘POST’, // 数据发送方式 dataType: ‘xml’, // 数据加载的类型...

    simpleImageTool-1.5.jar

    impleImageTool1.5主要在最近写一个编辑工具时发现了不足,进行了些改进添加控制小于指定的尺寸不打水印 通过 waterMarkerMin(int minwidth, int minheight)设置,修正上一版有个地方流没关闭,现在更好用。...

    可缩放Reloaded-一个针对可缩放元素的复用组件

    这些范例展示了元素如何应用了一个浮动(默认)和装上可缩放的组件。 查看 basic.js 完整代码。 基本范例这是个简单的可缩放的范例。在矩形附近可调节大小。这个例子采用了“浮动... minWidth:100, minHeight:50 }); 包

    stylus-media-queries:Stylus mixins 可快速编写用于自适应和响应式设计的媒体查询

    混合当前可用的混合: /* Screen sizes */screen (minWidth , maxWidth )max-screen (maxWidth)min-screen (minWidth)screen-height (minHeight , maxHeight )max-screen-height (maxHeight)min-screen-height (minH

    leaflet-areaselect:用于让用户使用矩形选择地图区域并获得边界框的小叶插件

    areaSelect ( { width : 200 , height : 300 , minWidth : 40 , minHeight : 40 , minHorizontalSpacing : 40 , minVerticalSpacing : 100 } ) ; areaSelect . addTo ( map ) ; // Read the bouding box var bounds...

    kindeditor+zh_CN

    minWidth: '580px', minHeight: '300px', resizeMode : 1, uploadJson : webRoot + '/kindeditor/UploadJson', resizeType : 1, //allowPreviewEmoticons : false, allowImageUpload : true, items : ...

    C#字符验证识别,验证码、车牌号、身份证号字.rar

    bc.MinWidth = bc.MinHeight = 0; bc.MaxWidth = size.Width; bc.MaxHeight = size.Height; bc.ProcessImage(ivbmp); Rectangle[] rects = bc.GetObjectsRectangles(); Bitmap tmp = new Bitmap(bmp); ...

    Android代码-BoundLayout

    minWidth specifies the minimum width of the layout. minHeight specifies the minimum height of the layout. QuickStart Include the Gradle dependency dependencies { compile 'link.fls:boundlayout:1.0.0' ...

    flexigrid 参数说明

    代码如下: Flexigrid部分代码代码 if (t.grid) return false; // return if already exist // apply default ...默认是奇偶交互的形式 novstripe : false, minwidth : 30, // 列的最小宽度 minheight : 80, // 列

    electron-panel-test

    电子面板 关于 启用在Electron中创建行为类似于面板的浏览器窗口的功能。... minHeight : 100 , minWidth : 100 , show : false , webPreferences : { preload : ` ${ __dirname } /preload.js` ,

    让IE6支持min-width和max-width的方法

    minmax_props= new Array( new Array(‘min-width’, ‘minWidth’), new Array(‘max-width’, ‘maxWidth’), new Array(‘min-height’,’minHeight’), new Array(‘max-height’,’maxHeight’) ); // Binding...

    ImageWaterMark图片水印组件源码2.0

    参数说明:GetToWaterMarkImage(pictype, wmpicwidth, wmpicheight, mininfo, minwidth, minheight, effect, mosaic, mosX, mosY, mosWidth,mosHeight, imgcut, cutX, cutY, cutWidth, cutHeight)1.pictype:水印类型2...

    PhotoPicker-1:Android照片选择器库

    config.minHeight = 400;config.minWidth = 400;config.mimeType = new String[]{"image/jpeg", "image/png"}; // 图片类型 image/gif ...config.minSize = 1 * 1024 * 1024; // 1Mb 图片大小单选PhotoPickerIntent ...

Global site tag (gtag.js) - Google Analytics