PDA

View Full Version : [FIXED][DUP][3.0rc1.1] fontWeight Property



INeedADip
6 May 2009, 2:59 PM
In a panel I'm trying to add the following item:


xtype: 'displayfield',
fieldLabel: 'Account Name',
style: 'font-weight: bold;'

And I get an error in IE8 that says:


Message: Could not get the fontWeight property. Invalid argument.
Line: 3632
Char: 17
Code: 0
URI: path/ext-all-debug.js

If I take out the "style: 'font-weight: bold;'" I don't get the error and everything works. This does work in FireFox, just not in IE8.

Has anyone else gotten this error?

elishnevsky
6 May 2009, 3:54 PM
Remove the space between font-weight: and bold. I know, it sounds stupid, but it works :) I guess there is a bug in Ext JS code.

evant
6 May 2009, 6:33 PM
Correct, was a bug with applyStyles not correctly trimming styles. This is fixed in SVN.