Changes between Version 2 and Version 3 of Ticket #13268, comment 4


Ignore:
Timestamp:
Mar 1, 2013, 10:16:30 PM (7 years ago)
Author:
bdmayes
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13268, comment 4

    v2 v3  
    11Due to an upcoming (new) release of my own application I really needed to get this fixed, so I started stepping through the code.  If anyone is even looking at this case, the problem stems from the use of the layerX and layerY attributes on the event on the _setPoint() function of ColorPicker.js:
    22
     3
     4{{{
    35var newTop = evt.layerY - satSelCenterH;
    46var newLeft = evt.layerX - satSelCenterW;
     7}}}
     8
    59
    610
     
    1519In order to fix this, you can simply use the isIE / has("ie") functions in dojo.  So a quick hack is something like this:
    1620
     21
     22{{{
    1723if (dojo.isIE >= 9) {
    1824  var newTop = evt.y - satSelCenterH;
     
    2430  var newLeft = evt.layerX - satSelCenterW;
    2531}
     32}}}
     33
    2634
    2735