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
}]
}]
}];
你可以发布一些代码,或截图,你使用什么版本的extjs ...? – nscrob
你已经添加到项目中的任何额外的CSS? –
我已更新问题。我没有添加任何其他的CSS。 – Milan