JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.4.3
[ckeditor.git] / _source / plugins / floatpanel / plugin.js
index 8940192..8dc7ae2 100644 (file)
@@ -60,6 +60,8 @@ CKEDITOR.plugins.add( 'floatpanel',
                                children : [],\r
                                dir : editor.lang.dir\r
                        };\r
+\r
+                       editor.on( 'mode', function(){ this.hide(); }, this );\r
                },\r
 \r
                proto :\r
@@ -123,10 +125,11 @@ CKEDITOR.plugins.add( 'floatpanel',
 \r
                                element.setStyles(\r
                                        {\r
-                                               top : 0,\r
+                                               top : top + 'px',\r
                                                left: 0,\r
                                                display : ''\r
                                        });\r
+\r
                                // Don't use display or visibility style because we need to\r
                                // calculate the rendering layout later and focus the element.\r
                                element.setOpacity( 0 );\r