PDA

View Full Version : [CLOSED] Ext.Msg.alert box size



livehealthierGF
Jul 25, 2013, 3:31 PM
How can I change alert box size? I have iframe with width 300px, but messagebox is 554px by default.

Daniil
Jul 25, 2013, 5:18 PM
Hi @livehealthierGF,

Maybe, this way.


Ext.Msg.maxWidth = 300;
Ext.Msg.alert("", "");
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.window.MessageBox-cfg-maxWidth

livehealthierGF
Jul 25, 2013, 5:26 PM
Tried it, but doesn't work :(

Baidaly
Jul 26, 2013, 4:18 AM
Hello!

There are some changes in ExtJS 4.2. Try the following:



Ext.MessageBox.alert({ maxWidth: 150, minWidth: 0, title: 'test', msg: 'test msg'});