Reputation:
I'm developing an app for Android devices and when I use Ext.msg.alert as follows:
Ext.msg.alert('Little fox jumped over something');
Only the text "Little fox jumped" is shown in alert because text reaches the right border of the screen and it does not automatically put the rest on second line.
I think this is some kind of auto-fit problem(?).Ext.msg.alert does not make the text fit inside its borders(?).
I've tried
Ext.msg.alert('Little fox jumped over something').doComponentLayout();
and
Ext.msg.alert('Little fox jumped over something').doLayout();
But those made no use.
Had any of the folks ever come over this problem? Any suggestions?
Thank you.
Upvotes: 3
Views: 4751
Reputation: 1605
The function has 3 parameters:
Ext.Msg.alert('Title', 'The quick brown fox jumped over the lazy dog.', Ext.emptyFn);
Try to set the second parameter with your "longer" text. Should look like this: http://dev.sencha.com/deploy/touch/docs/?class=Ext.MessageBox
Upvotes: 11