Reputation: 61
How to increase width of Ext.Msg.Confirm message box.
Upvotes: 4
Views: 11814
Reputation: 55
you need to call the function setWidth like :
Ext.Msg.setMinWidth(600)
Upvotes: 0
Reputation: 216
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
}
Upvotes: 1
Reputation: 5169
To make all messages wider try this:
Ext.MessageBox.minWidth = 300;
Upvotes: 10