Ext.msg.alert只呈现第一行

3 alert extjs sencha-touch

我正在为Android设备开发一个应用程序,当我使用Ext.msg.alert时,如下所示:

Ext.msg.alert('Little fox jumped over something');
Run Code Online (Sandbox Code Playgroud)

只有文字"Little fox jumped"才会显示在警告状态,因为文本到达屏幕的右边界并且不会自动将其余部分放在第二行.

我认为这是某种自动调整问题(?).Ext.msg.alert不会使文本适合其边界(?).

我试过了

Ext.msg.alert('Little fox jumped over something').doComponentLayout();
Run Code Online (Sandbox Code Playgroud)

Ext.msg.alert('Little fox jumped over something').doLayout();
Run Code Online (Sandbox Code Playgroud)

但那些没用.

有没有人遇到过这个问题?有什么建议?

谢谢.

fbr*_*del 10

该函数有3个参数:

Ext.Msg.alert('Title', 'The quick brown fox jumped over the lazy dog.', Ext.emptyFn);
Run Code Online (Sandbox Code Playgroud)

尝试使用"较长"文本设置第二个参数.应该是这样的:http://dev.sencha.com/deploy/touch/docs/?class = Ext.MessageBox