PDA

View Full Version : On IE8 browser tool tip for the disabled button is not showing.



Sameer Khan
18 Feb 2013, 4:42 AM
Can some one help me on the following issue ?

In my panel I have a button with tooltip , I disabled the button for some functionality. Here the problem is tool tip also not showing on the button in IE8 browser but it is working when the button is enabled.

On Firefox tooltip shows up fine.( both enable/disable the button)

Plz help me on this.

{
id: this.saveBtnId,
disabled: true,
scope: this,
text: 'Send to Pending »',
listeners: {
afterrender: function( button ) {
// Add tool tips
var tip = new Ext.ToolTip({
target: button.getId(),
html: this.saveBtnToolTip,
anchor: 'left',
renderTo: Ext.getBody(),
listeners: {
beforeshow: function(tooltip){
var saveBtnToolTipValue = button.disabled ? this.disabledSaveBtnToolTip : this.saveBtnToolTip;
tooltip.setWidth(saveBtnToolTipValue.length * 5);
tooltip.update(saveBtnToolTipValue);
},
scope: this
}
});
},

}

sword-it
18 Feb 2013, 8:29 AM
Hi sameer,

See this thread-
http://stackoverflow.com/questions/8784530/extjs4-display-tooltip-for-disabled-button