PDA

View Full Version : tbar button with menu - wrong rendering



zlevardy
14 Oct 2013, 5:13 AM
hi,

I am about to add a button into toolbar, what open a menu while clicking on it. Ideally button text and menu opener triangle should be the some line. For me button text one line, and next line starts with menu opener icon. Theme is kitchen sink, if it counts. This is what I am trying:



tbar: [
{
xtype: 'button', // default for Toolbars
text: 'Button',
width: 100,
menu:
{
xtype: 'menu',
items: [{
text: 'Menu One',
iconCls: 'edit'
}, {
text: 'Menu Two',
menu: {
xtype: 'menu',
items: [{
text: 'Next Level'
},{
text: 'Next Level'
},{
text: 'Next Level'
}]
}
}, {
text: 'Menu Three',
scale: 'small'
}]
}
}


Of course combobox would be good, without editing function, and rendering a button - I have not been able to get this working. Basically I am looking for an HTML Select similar in Extjs.

thanks

Gary Schlosberg
15 Oct 2013, 5:47 PM
I'm not able to recreate this issue. I added your code to this fiddle. Let me know if it reproduces the issue for you.

10r