PDA

View Full Version : Unable to set width of the MessageBox



getphuture
31 Aug 2011, 6:40 PM
Good day everyone,

New to Sencha ! I've just tried to make my first prototype with Sencha Touch.
I'm calling a basic message box on a button:


Ext.Msg.show({
title: "Title",
msg: "Some multiple messages",
width: 500,
multiLine: true,
prompt: {
maxlength: 200,
autofocus : true
},
buttons: Ext.MessageBox.OKCANCEL,
fn: Ext.emptyFn
});
I tried to use the width, maxWidth, minWidth properties, in any cases the size of the box doesn't change at all. Did I miss something ?
I'm using the version 1.1.0 of Sencha Touch.

Thank you for your feedback,

Peter

estesbubba
28 Nov 2011, 10:03 AM
Found a way to do it.




var options = {
width: 400,
...
};
var dialog = new Ext.MessageBox(options);
dialog.show(options);