aboutsummaryrefslogtreecommitdiff
path: root/sources/plugins/floatpanel/plugin.js
diff options
context:
space:
mode:
Diffstat (limited to 'sources/plugins/floatpanel/plugin.js')
-rw-r--r--sources/plugins/floatpanel/plugin.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/plugins/floatpanel/plugin.js b/sources/plugins/floatpanel/plugin.js
index 0de3e5e..c104037 100644
--- a/sources/plugins/floatpanel/plugin.js
+++ b/sources/plugins/floatpanel/plugin.js
@@ -270,8 +270,8 @@ CKEDITOR.plugins.add( 'floatpanel', {
270 target.removeStyle( 'width' ); 270 target.removeStyle( 'width' );
271 271
272 if ( block.autoSize ) { 272 if ( block.autoSize ) {
273 var panelDoc = block.element.getDocument(); 273 var panelDoc = block.element.getDocument(),
274 var width = ( CKEDITOR.env.webkit ? block.element : panelDoc.getBody() ).$.scrollWidth; 274 width = ( ( CKEDITOR.env.webkit || CKEDITOR.env.edge ) ? block.element : panelDoc.getBody() ).$.scrollWidth;
275 275
276 // Account for extra height needed due to IE quirks box model bug: 276 // Account for extra height needed due to IE quirks box model bug:
277 // http://en.wikipedia.org/wiki/Internet_Explorer_box_model_bug 277 // http://en.wikipedia.org/wiki/Internet_Explorer_box_model_bug