Ticket #29338: 29338.2.patch
File 29338.2.patch, 983 bytes (added by , 11 years ago) |
---|
-
src/wp-admin/js/editor-expand.js
223 223 } 224 224 225 225 function mceHide() { 226 var wrapHeight = $( '#wpwrap' ).height(); 226 var wrapHeight = $( '#wpwrap' ).height(), 227 windowPos = $window.scrollTop(), 228 iframeHeight, textareaHeight; 227 229 228 230 textEditorResize(); 231 iframeHeight = $('#content_ifr').height(); 232 textareaHeight = $textEditor.height(); 229 233 230 if ( wrapHeight && $window.scrollTop() > wrapHeight ) { 234 if ( iframeHeight > textareaHeight && ( windowPos + heights.windowHeight ) > ( textareaHeight + $textEditor.offset().top ) ) { 235 window.scrollBy( 0, -( iframeHeight - textareaHeight - 1 ) ); 236 adjust(); 237 window.scrollBy( 0, 1 ); 238 } else if ( wrapHeight && windowPos > wrapHeight ) { 231 239 window.scrollTo( window.pageXOffset, wrapHeight - 1 ); 232 240 } 233 241