flex-Flex combox icon怎么居中

作者:用户 来源:互联网 浏览:282 次 时间:2016-06-28 15:30:22

iconflex

flex-Flex combox icon怎么居中 - 摘要: Flexcomboxicon怎么居中<?xmlversion=""1.0""encoding=""utf-8""?>xmlns:s=""library://ns.adobe.com/fle

问题描述

Flex combox icon怎么居中

<?xml version=""1.0"" encoding=""utf-8""?>
xmlns:s=""library://ns.adobe.com/flex/spark""
xmlns:mx=""library://ns.adobe.com/flex/mx"" minWidth=""955"" minHeight=""600""
creationComplete=""aaa()"">
fx:Declarations
<!-- Place non-visual elements (e.g. services value objects) here -->
/fx:Declarations

<fx:Script>    <![CDATA[        import mx.collections.ArrayCollection;        import mx.events.DropdownEvent;        [Bindable]        private var list:ArrayCollection = new ArrayCollection();        [Embed(source=""sts_located.gif"")]        private var aaaCls:Class;        [Embed(source=""sts_partial.gif"")]        private var bbbCls:Class;        [Embed(source=""sts_unfilled.gif"")]        private var cccCls:Class;        private function aaa():void{            list.addItem({data:""aaa""label:""aaa""});            list.addItem({data:""bbb""label:""bbb""});            list.addItem({data:""ccc""label:""ccc""});        }        protected function combobox1_openHandler(event:DropdownEvent):void        {            statusCombox.dropdown.iconFunction=getIcon;            statusCombox.dropdown.horizontalCenter=0;            statusCombox.dropdown.verticalCenter=0;        }        private function getIcon(item:Object):Class{            if(item.data==""aaa""){                return aaaCls;            }else if(item.data==""bbb""){                return bbbCls;            }else if(item.data==""ccc""){                return cccCls;            }else{                return null;            }        }    ]]></fx:Script><mx:ComboBox id=""statusCombox"" x=""198"" y=""97"" dataProvider=""{list}"" open=""combobox1_openHandler(event)""/>

/s:Application

如上,icon和text是不垂直对齐的,怎么才能对其

【云栖快讯】你想见的Java技术专家都在这了,向大佬提问,有问题必答  详情请点击
云栖社区(yq.aliyun.com)为您免费提供flex-Flex combox icon怎么居中相关信息,包括 iconflex 的信息 ,所有flex-Flex combox icon怎么居中相关内容均不代表云栖社区的意见! 该页面h5页面的地址是:https://m.aliyun.com/yunqi/wenzhang/show_98276,您可以点击flex-Flex combox icon怎么居中-手机站访问。
弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率

40+云计算产品,6个月免费体验

现在注册,免费体验40+云产品,及域名优惠!

云服务器9.9元/月,大学必备

热点导航