PDA

View Full Version : Message box with icon and title



vinothsencha
25 Sep 2013, 2:42 AM
I am displaying a message by setting icon and title.

I am using the following code.
Ext.Msg.show
({
title:'BNE',
msg:'Are you sure you want to close?',
buttons:Ext.Msg.YESNO,
icon:Ext.Msg.QUESTION,
iconCls:'small-irely-icon'
});
45981
It is having some spaces between the icon and title.
Can you please someone tell me how to remove those spaces?

Thanks in advance.

existdissolve
25 Sep 2013, 4:02 AM
I am displaying a message by setting icon and title.

I am using the following code.
Ext.Msg.show
({
title:'BNE',
msg:'Are you sure you want to close?',
buttons:Ext.Msg.YESNO,
icon:Ext.Msg.QUESTION,
iconCls:'small-irely-icon'
});
45981
It is having some spaces between the icon and title.
Can you please someone tell me how to remove those spaces?

Thanks in advance.

That doesn't look like the default style for Ext.MessageBox. Have you customized it via CSS? I'm assuming "yes", so in that case, you'll have to update via CSS how the icon and title get laid out in relation to one another.

As you can see in the fiddle below, the default, unmodified MessageBox lays out the icon and title correctly.

li

vinothsencha
26 Sep 2013, 11:33 PM
Yes. it was customized via css..
Thank you