开发者

dojox DropDownSelect fixed width

开发者 https://www.devze.com 2023-02-22 09:30 出处:网络
I wonder how to set fixed width for dojox.form.DropDownSelect (version 1.3开发者_如何学Go). I tried the following:

I wonder how to set fixed width for dojox.form.DropDownSelect (version 1.3开发者_如何学Go). I tried the following:

<select id="selectNode"  width="100px" dojoType="dojox.form.DropDownSelect" >
   <option value="opt">Some option</option>
</select>

<select id="selectNode"  style="width: 100px" dojoType="dojox.form.DropDownSelect" >

<select id="selectNode"  class="myclass" dojoType="dojox.form.DropDownSelect" > 
.myclass = { width: 100px }


You can't set width of DropDown Select less than width of biggest item. If you set width bigger - it would work OK. I propose to you if it possible use dijit.form.ComboBox instead of DropDownSelect . Width property for ComboBox will work in all cases. See example (last item - is ComboBox)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号