Ticket #31163: 31163.patch
| File 31163.patch, 831 bytes (added by , 11 years ago) |
|---|
-
src/wp-admin/js/editor-expand.js
323 323 var windowPos = $window.scrollTop(), 324 324 type = event && event.type, 325 325 resize = type !== 'scroll', 326 visual = ( mceEditor && ! mceEditor.isHidden()),326 visual = mceEditor && ! mceEditor.isHidden(), 327 327 buffer = autoresizeMinHeight, 328 328 postBodyTop = $postBody.offset().top, 329 329 borderWidth = 1, … … 350 350 topHeight = heights.textTopHeight; 351 351 } 352 352 353 // TinyMCE still intializing. 354 if ( ! visual && ! $top.length ) { 355 return; 356 } 357 353 358 topPos = $top.parent().offset().top; 354 359 editorPos = $editor.offset().top; 355 360 editorHeight = $editor.outerHeight();