To adjust variable height according to the long texts, create a custom css for your selected field list. Examples: Use onFocus event on the selected field where you want to change the width of the panel list, like this:
onFocus: function (e) { this.callParent(arguments); this.panelList.setWidth(320); }
OR You can get the selectfield when the panelList will be shown, like this:
sf = Ext.Viewport.down('selectfield[action=mySelectfield]');
After that set the width of the panel, like this:
sf.panelList.setWidth(320)
OR You can use css for adjusting width according to the field list, like this:
.x-select-overlay { .x-list { x-list-item { ---> you can code other related coding here } } }
I hope it will be helpful for you.
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
Examples: Use onFocus event on the selected field where you want to change the width of the panel list, like this:
OR
You can get the selectfield when the panelList will be shown, like this:
sf = Ext.Viewport.down('selectfield[action=mySelectfield]');After that set the width of the panel, like this:OR
You can use css for adjusting width according to the field list, like this:
I hope it will be helpful for you.