JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6.3
[ckeditor.git] / _source / plugins / popup / plugin.js
index a2e1f33..bd59fe2 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.\r
 For licensing, see LICENSE.html or http://ckeditor.com/license\r
 */\r
 \r
@@ -49,8 +49,13 @@ CKEDITOR.tools.extend( CKEDITOR.editor.prototype,
 \r
                try\r
                {\r
-                       popupWindow.moveTo( left, top );\r
-                       popupWindow.resizeTo( width, height );\r
+                       // Chrome 18 is problematic, but it's not really needed here (#8855).\r
+                       var ua = navigator.userAgent.toLowerCase();\r
+                       if ( ua.indexOf( ' chrome/18' ) == -1 )\r
+                       {\r
+                               popupWindow.moveTo( left, top );\r
+                               popupWindow.resizeTo( width, height );\r
+                       }\r
                        popupWindow.focus();\r
                        popupWindow.location.href = url;\r
                }\r