2011-10-03 45 views
2

我有一个奇怪的情况,即extjs 4总是将自定义错误信息的最后一个单词放在新行中,并有效隐藏它。我尝试缩短信息,但总是最后一个字走向新线。 这发生在Firefox 7.0.1(firebug关闭),而不是在Chrome,Opera,Safari。防止出现错误信息中的单词换行

默认消息文本显示正确。我的错误消息没有奇怪的字母或符号。

我试图逃脱白色字符,把nobr标签等......但没有任何作品。

如何防止这种行为?

我没有任何CSS或任何其他造型应用。这里是从代码查看:

this.items = [{ 
      waitMsgTarget: 'dailyReport', 
      xtype: 'form', 
      url: 'php/dailyReport.php', 
      items: [{ 
       margin: 10, 
       xtype: 'datefield', 
       name: 'reportDate', 
       fieldLabel: 'Report for', 
       format: 'd.m.Y.', 
       altFormats: 'd.m.Y|d,m,Y|m/d/Y', 
       value: getCorrectDate(), 
       disabledDays: [0] 
      }, 
      { 
       margin: 10, 
       xtype: 'checkboxgroup', 
       fieldLabel: 'Report by', 
       columns: 2, 
       vertical: true, 
       allowBlank: false, 
       blankText: 'Choose at least one.', 
       items: [{ 
        boxLabel: 'pos', 
        name: 'rb', 
        inputValue: '1', 
        checked: true 
       }, 
       { 
        boxLabel: 'seller', 
        name: 'rb', 
        inputValue: '2', 
        checked: true 
       }] 
      }] 
     }]; 
+1

你可以发布一些代码,或截图,你使用什么版本的extjs ...? – nscrob

+0

你已经添加到项目中的任何额外的CSS? –

+0

我已更新问题。我没有添加任何其他的CSS。 – Milan

回答

0

'Ctrl'+'+'是原因。我在Firefox中的看法放大了,但直到今天我才注意到它。在我将它恢复到正常缩放级别'Ctrl'+'0'后,一切正常,显示正常。愚蠢的是,我花了2周才意识到这一点。