如何设置ComboBox下拉选项框的宽度呢

Flex 学习笔记 ComboBox内容框宽度左边下拉框发现字符太长了   属性里也找不到相关宽度可以设置,解决如下

<!--添加open事件  打开下拉选项框时设置-->
<s:ComboBox id="cbxPerf"  width="80"  dataProvider="{dpPerf}" 
                labelField="GROUPNAME" change="cbxPerf_changeHandler(event)" open="cbxPerf_openHandler(event)"  />


//设置宽度
protected function cbxPerf_openHandler(event:DropDownEvent):void
{
  cbxPerf.dropDown.width=250;
}

参考信息:http://www.cnblogs.com/zcy_soft/archive/2011/06/09/2076492.html

 

 

相关文章:

  • 2021-05-07
  • 2021-06-08
  • 2021-08-05
  • 2021-11-19
  • 2022-12-23
  • 2021-05-16
  • 2021-10-08
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-01
  • 2021-05-27
  • 2021-12-15
  • 2022-12-23
  • 2021-11-01
相关资源
相似解决方案