Changeset 20723
- Timestamp:
- 05/04/2012 03:23:01 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin_src.js
r20166 r20723 116 116 return; 117 117 118 var d = ed.getDoc(), DOM = tinymce.DOM, resizeHeight, myHeight;118 var d = ed.getDoc(), body = d.body, DOM = tinymce.DOM, resizeHeight, myHeight; 119 119 120 120 // Get height differently depending on the browser used 121 if ( tinymce.isIE )121 if ( tinymce.isIE || tinymce.isWebKit ) 122 122 myHeight = d.body.scrollHeight; 123 123 else 124 myHeight = d.documentElement.offsetHeight;124 myHeight = body.offsetHeight; 125 125 126 126 // Don't make it smaller than 300px … … 129 129 // Resize content element 130 130 if ( oldHeight != resizeHeight ) { 131 oldHeight = resizeHeight;132 131 resized = true; 133 132 setTimeout(function(){ resized = false; }, 100); 134 135 133 DOM.setStyle(DOM.get(ed.id + '_ifr'), 'height', resizeHeight + 'px'); 134 oldHeight = resizeHeight; 136 135 } 137 136 };
Note: See TracChangeset
for help on using the changeset viewer.