ExtJS 4 How to Set ComboBox Width

How to set ComboBox input field width? I tried to set the width and it does not work. I could not find any CSS variable for width, although it exists for height ($form-field-height).

I also tried setting the width in the Style field.

    fieldStyle: {
        width: '100px'
    }

I can change the height. The following work.

    fieldStyle: {
        height: '60px'
    }
+4
source share
3 answers

Width works, you can play with this code to see it:

https://fiddle.sencha.com/#fiddle/1g3

Sincerely.

+3
source

code4jhon , : combobox : , hbox, vbox,...? , .

+7

Can you try this using !importantin css,

fieldStyle: {
    width: 100px!important;
}
0
source

All Articles