Results 1 to 3 of 3

Thread: Ext-JS 4.2 - IE10 feature detection - Direct2DBug is 0

    Success! Looks like we've fixed this one. According to our records the fix was applied for a bug in our system in a recent build.
  1. #1
    Sencha Premium User
    Join Date
    Jan 2009

    Default Ext-JS 4.2 - IE10 feature detection - Direct2DBug is 0

    Test case:

    Using an IE10 browser, open up the console and execute Ext.supports.Direct2DBug. It will return 0.

    Expected result:

    Should return a truthy value. I'm basing this off the code from Support.js.

             * @property Direct2DBug True if when asking for an element's dimension via offsetWidth or offsetHeight,
             * getBoundingClientRect, etc. the browser returns the subpixel width rounded to the nearest pixel.
             * @type {Boolean}
                identity: 'Direct2DBug',
                fn: function() {
                    return Ext.isString( && Ext.isIE10m;
    The strange thing is, I can execute the line from the return statement on the console in IE10 and get true. So it seems something is wrong with feature detection.

    This looks like an especially frustrating bug because it makes the tooltip text go haywire in IE10. I experimented with tooltip examples setting the Direct2DBug back to true in IE10 and it looked like it took care of the wrapping issues many are reporting.

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Sydney, Australia


    Indeed, we already have this one fixed for 4.2.1. Thanks for the post.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  3. #3
    Sencha User Daniil's Avatar
    Join Date
    Jun 2010
    Saint-Petersburg, Russia


    Hi Evan,

    Could you share a fix if possible?
    Frameworks and Tools for .NET Developers
    Ext.NET - Ext JS for ASP.NET - Examples | Twitter
    Bridge.NET - Write C#. Run JavaScript! - Live | Twitter

Posting Permissions

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