JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6.6
[ckeditor.git] / _source / plugins / dialog / plugin.js
index e21f5d1..434a55b 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.\r
 For licensing, see LICENSE.html or http://ckeditor.com/license\r
 */\r
 \r
@@ -751,6 +751,16 @@ CKEDITOR.DIALOG_RESIZE_BOTH = 3;
 \r
                        var isFixed = element.getComputedStyle( 'position' ) == 'fixed';\r
 \r
+                       // (#8888) In some cases of a very small viewport, dialog is incorrectly\r
+                       // positioned in IE7. It also happens that it remains sticky and user cannot\r
+                       // scroll down/up to reveal dialog's content below/above the viewport; this is\r
+                       // cumbersome.\r
+                       // The only way to fix this is to move mouse out of the browser and\r
+                       // go back to see that dialog position is automagically fixed. No events,\r
+                       // no style change - pure magic. This is a IE7 rendering issue, which can be\r
+                       // fixed with dummy style redraw on each move.\r
+                       element.setStyle( 'zoom', '100%' );\r
+\r
                        if ( isFixed && this._.position && this._.position.x == x && this._.position.y == y )\r
                                return;\r
 \r