You found a bug! We've classified it as EXTJSIII-94 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    29
    Vote Rating
    0
    koolaid1551 is on a distinguished road

      0  

    Default ExtJS 3.4: Ext.util.CSS.getRule Issue in IE8

    ExtJS 3.4: Ext.util.CSS.getRule Issue in IE8


    Ext.util.CSS.getRule doesn't appear to work in IE8 but it works in chrome.

    My CSS
    Code:
    .x_3FieldsPerLine input, .x_3FieldsPerLine select {
        width: 227px;
    }
    My ExtJS
    Code:
    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

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,522
    Vote Rating
    814
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha User
    Join Date
    Jul 2011
    Posts
    29
    Vote Rating
    0
    koolaid1551 is on a distinguished road

      0  

    Default


    Just an update if I add new css rules like below and call Ext.util.CSS.getRule(".x_3FieldsPerLine") it works
    Code:
    .x_3FieldsPerLine {
        width: 227px;
    }

Thread Participants: 1

Tags for this Thread