Ticket #8855: popup.patch

File popup.patch, 967 bytes (added by luckytp, 10 years ago)

Path to fix open popup in chrome

  • ckeditor/_source/plugins/popup/plugin.js

    # This patch file was generated by NetBeans IDE
    # It uses platform neutral UTF-8 encoding and \n newlines.
     
    4949
    5050                try
    5151                {
    52                         // Chrome is problematic with moveTo/resizeTo, but it's not really needed here (#8855).
     52                        // Chrome 18 is problematic, but it's not really needed here (#8855).
    5353                        var ua = navigator.userAgent.toLowerCase();
    54                         if ( ua.indexOf( ' chrome/' ) == -1 )
     54                        var useResize = true;
     55                        if (ua.indexOf('chrome') > -1) {
     56                          var chromeVersion = ua.replace(/^.*chrome\/([\d]+).*$/i, '$1')
     57                          if(chromeVersion >= 18) {
     58                            useResize = false;
     59                          }
     60                        }
     61                        if (useResize)
    5562                        {
    5663                                popupWindow.moveTo( left, top );
    5764                                popupWindow.resizeTo( width, height );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy