PDA

View Full Version : right align combobox list



mdissel
6 Sep 2010, 5:18 AM
See screenshot. How can i right-align the dropdown list in so that the left part is aligned with the textbox?

Thanks

Condor
6 Sep 2010, 5:30 AM
This should help:

listAlign: 'tr-br?'
but unfortunately, ComboBox align to the el instead of the wrap (you could patch this).

mdissel
6 Sep 2010, 7:28 AM
Hmm.. restrictHeight, but especially expand is a large function, resulting in possible conflits when upgrading extjs.. Is this the only line to change ?
expand:
this.list.alignTo.apply(this.list, [this.el].concat(this.listAlign));
becomes

this.list.alignTo.apply(this.list, [this.wrap].concat(this.listAlign));

Condor
6 Sep 2010, 7:35 AM
Correct.