2013-08-26 70 views
1

Im使用Ext.Msg.alert()和'Ext.Msg.show()'来显示我的消息框。但到目前为止,只有标题显示一个确定按钮,但消息字段未显示。运行代码时没有错误。我错过了什么?Ext.Msg.alert和Ext.Msg.show没有显示“message”字段

下面是我的代码使用Ext.Msg.alert()

Ext.Msg.alert('Title', 'Why you no display!?', Ext.emptyFn); 

,并在使用Ext.Msg.Show()时,在2013年8月27日

Ext.Msg.show({ 
    title:'Title', 
    message: 'Why you no display!?', 
    buttons: Ext.MessageBox.OK, 
    fn:Ext.emptyFn 
}); 

更新我发现,消息框工作时在IOS设备上运行,但不在Android和桌面浏览器上运行。

回答

1

通过网络挖掘后,我终于找到了解决方案。事实证明,该修复程序位于基本文件夹中的sass文件中。

原帖是here

总之,

转到touch\resources\themes\stylesheets\sencha-touch\base\mixins,打开_Class.scss文件并替换的@mixin st-box与下面的整个代码块,然后重新编译你的CSS(例如使用罗盘表)

@mixin st-box($important: no) { 
    @if $important == important { 
     display: flex !important; 
     display: -webkit-box !important; 
     display: -ms-flexbox !important; 
    } @else { 
     display: flex; 
     display: -webkit-box; 
     display: -ms-flexbox; 
    } 
}