Title: Combobox width attribute Post by: galcott on April 15, 2022, 08:58:08 AM On the combobox, the width property doesn't seem to work. If I use this code:
Code: <SELECT class='easyui-combobox' panelHeight='auto' label='Category' editable=false labelWidth=90 width=320> http://galcott.com/combo1.jpg (http://galcott.com/combo1.jpg) I have to use a style tag to get the width to work. Code: <SELECT class='easyui-combobox' panelHeight='auto' label='Category' editable=false labelWidth=90 style='width: 320px'> http://galcott.com/combo2.jpg (http://galcott.com/combo2.jpg) That doesn't seem like the way it's supposed to work. Is there an issue with the width property? Title: Re: Combobox width attribute Post by: jarry on April 15, 2022, 11:49:28 PM Put these properties to the 'data-options' attribute.
Code: <SELECT class='easyui-combobox' panelHeight='auto' label='Category' editable=false data-options="width:320,labelWidth:90"> Code: <SELECT class='easyui-combobox' data-options="width:320,labelWidth:90,label:'Category',editable:false,panelHeight:'auto'"> If you really want to use the 'width' attribute on the element, please override the $.fn.combobox.parseOptions function to support it. Code: <script type="text/javascript"> Now the code below works well. Code: <SELECT class='easyui-combobox' panelHeight='auto' label='Category' editable=false labelWidth=90 width=320> |