Results 1 to 4 of 4

Thread: IE11 - Exception with createStyleSheet

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User SurenderBhyan1's Avatar
    Join Date
    Nov 2013
    Location
    INDIA
    Posts
    130

    Default IE11 - Exception with createStyleSheet

    Hi Support,

    I found a bug when using Ext.util.CSS.createStyleSheet in IE11

    Version : ExtJS 4.2.1
    Browser : IE11.
    [issue not reproducible in Chrome and Firefox.]

    Description:

    when trying to create style sheet using as below

    Code:
    Ext.util.CSS.createStyleSheet('.x-column-header-trigger{ display: none !important;}', 'hideHDMenu');
    it generate the exception in debugger from ext-all.js

    Unable to set property 'cssText' of undefined or null reference

    You can reproduce the same error just pasting above code in debugger.


    Thanks
    ---A ship in the harbor is safe, but that is not what the ships are made for...

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Thanks for the report. Ext JS 4.2.2 was the first 4.x version to support IE 11. Are you able to test with 4.2.2 to see if the issue is still present?

  3. #3
    Sencha User SurenderBhyan1's Avatar
    Join Date
    Nov 2013
    Location
    INDIA
    Posts
    130

    Default

    Gary, I am not having 4.2.2 version.

    so created workaround in 4.2.1 by changing ext-all.js (at line:103891) to get the correct styleSheet in case of IE

    Code:
     if(Ext.isIE) {
            head.appendChild(styleEl);
            ss = styleEl.styleSheet ? styleEl.styleSheet : (styleEl.sheet || doc.styleSheets[doc.styleSheets.length - 1]);
            ss.cssText = cssText;
      }
    It works for me like charm
    ---A ship in the harbor is safe, but that is not what the ships are made for...

  4. #4
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Nice! Thanks for taking the time to share with the community.

Similar Threads

  1. Replies: 2
    Last Post: 10 Jun 2015, 2:46 AM
  2. Ext.util.CSS.createStyleSheet fails in IE11.
    By karlsnyder0 in forum Ext:Bugs
    Replies: 4
    Last Post: 17 Feb 2014, 2:34 PM
  3. [FIXED] [4.1 B1] CSS.createStyleSheet() error
    By slemmon in forum Ext:Bugs
    Replies: 2
    Last Post: 11 Jan 2012, 10:55 AM
  4. [2.3.0] IE Bug in Ext.util.CSS.createStyleSheet
    By Baris in forum Ext 2.x: Bugs
    Replies: 8
    Last Post: 6 Aug 2009, 6:08 AM
  5. createStyleSheet() in ext-all.js not returning
    By OneManArmy in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 22 Oct 2007, 12:42 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •