EZboy
30 Jan 2012, 12:20 PM
How to reproduce:
This no longer works (html config option does not appy)
Ext.create('Ext.Button', {
scale : 'large',
cls : 'mash_button',
html : '<div class="menu-button"><img class="icon" src="images/icons/icon.png" ><div class="content"><div class="title">Button</div><span class="text">Some text here</span></div></div>'
});
And this will work ( but height for html contents is not calculated properly):
Ext.create('Ext.Button', {
scale : 'large',
cls : 'mash_button',
text : '<div class="menu-button"><img class="icon" src="images/icons/icon.png" ><div class="content"><div class="title">Button</div><span class="text">Some text here</span></div></div>'
});
Is this intended behavior? Documentation states html config should be supported and working.
Thank you
This no longer works (html config option does not appy)
Ext.create('Ext.Button', {
scale : 'large',
cls : 'mash_button',
html : '<div class="menu-button"><img class="icon" src="images/icons/icon.png" ><div class="content"><div class="title">Button</div><span class="text">Some text here</span></div></div>'
});
And this will work ( but height for html contents is not calculated properly):
Ext.create('Ext.Button', {
scale : 'large',
cls : 'mash_button',
text : '<div class="menu-button"><img class="icon" src="images/icons/icon.png" ><div class="content"><div class="title">Button</div><span class="text">Some text here</span></div></div>'
});
Is this intended behavior? Documentation states html config should be supported and working.
Thank you