How to increase width of Ext.Msg.Confirm message box.
To make all messages wider try this:
Ext.MessageBox.minWidth = 300;
I agree with Ext.MessageBox.minWidth = 300; please vote him up. I don't have the rep yet to vote that answer up myself. The first answer simply pointed to docs that no longer exist for ExtJS 3, and points to a method show() that may not be in use.
The answer #2 works perfectly for me, since I came here with the same question:
Ext.MessageBox.minWidth = 300;
Ext.MessageBox.confirm('Warning', 'Are you sure?', function(btn)
{
// this will execute if the user clicks Yes
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With