PDA

View Full Version : ExtJS 3.4: Ext.util.CSS.getRule Issue in IE8



koolaid1551
11 Dec 2012, 2:34 PM
Ext.util.CSS.getRule doesn't appear to work in IE8 but it works in chrome.

My CSS

.x_3FieldsPerLine input, .x_3FieldsPerLine select {
width: 227px;
}


My ExtJS

var classCssRule = Ext.util.CSS.getRule(".x_3FieldsPerLine input, .x_3FieldsPerLine select");
var cssWidth = classCssRule.style.width;

classCssRule appears to be undefined in IE8 although in chrome it is object and cssWidth is 227px

mitchellsimoens
12 Dec 2012, 6:43 AM
Thanks for the report! I have opened a bug in our bug tracker.

koolaid1551
12 Dec 2012, 7:49 AM
Just an update if I add new css rules like below and call Ext.util.CSS.getRule(".x_3FieldsPerLine") it works

.x_3FieldsPerLine {
width: 227px;
}