X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fpopup%2Fplugin.js;h=70fb75e155f2945be2d7a62109ba5f6d5dbf81cb;hb=fb481ba0a7d298e3e7b9034fcb9f2afdc6e8e796;hp=a2e1f33471c5b900c7cfab7c336e2e5a0dfa7ccd;hpb=48b1db88210b4160dce439c6e3e32e14af8c106b;p=ckeditor.git diff --git a/_source/plugins/popup/plugin.js b/_source/plugins/popup/plugin.js index a2e1f33..70fb75e 100644 --- a/_source/plugins/popup/plugin.js +++ b/_source/plugins/popup/plugin.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -49,8 +49,13 @@ CKEDITOR.tools.extend( CKEDITOR.editor.prototype, try { - popupWindow.moveTo( left, top ); - popupWindow.resizeTo( width, height ); + // Chrome is problematic with moveTo/resizeTo, but it's not really needed here (#8855). + var ua = navigator.userAgent.toLowerCase(); + if ( ua.indexOf( ' chrome/' ) == -1 ) + { + popupWindow.moveTo( left, top ); + popupWindow.resizeTo( width, height ); + } popupWindow.focus(); popupWindow.location.href = url; }