SunboX
4 Nov 2011, 4:36 AM
If I set the "iconAlign" config to "top", nothing happens. After looking at the Ext.Button code, I found the wrong line:
This should be changed:
/**
* @private
*/
updateIconAlign: function(alignment, oldAlignment) {
var element = this.element,
baseCls = Ext.baseCSSPrefix + 'iconalign-';
if (this.getIcon()) {
element.addCls(baseCls + alignment);
}
},
to this:
/**
* @private
*/
updateIconAlign: function(alignment, oldAlignment) {
var element = this.element,
baseCls = Ext.baseCSSPrefix + 'iconalign-';
if (this.getIconMask()) {
element.addCls(baseCls + alignment);
}
},
One more problem. If I fix the Button code, the icons are displayed in the wrog direction.
iconAlign: 'left' -> The icon is right
iconAlign: 'top' -> The icon is bottom
...
greetings Sunny
This should be changed:
/**
* @private
*/
updateIconAlign: function(alignment, oldAlignment) {
var element = this.element,
baseCls = Ext.baseCSSPrefix + 'iconalign-';
if (this.getIcon()) {
element.addCls(baseCls + alignment);
}
},
to this:
/**
* @private
*/
updateIconAlign: function(alignment, oldAlignment) {
var element = this.element,
baseCls = Ext.baseCSSPrefix + 'iconalign-';
if (this.getIconMask()) {
element.addCls(baseCls + alignment);
}
},
One more problem. If I fix the Button code, the icons are displayed in the wrog direction.
iconAlign: 'left' -> The icon is right
iconAlign: 'top' -> The icon is bottom
...
greetings Sunny