Ticket #30515: 30515.patch
| File 30515.patch, 1.3 KB (added by , 11 years ago) |
|---|
-
src/wp-admin/js/editor-expand.js
315 315 316 316 // Adjust the toolbars based on the active editor mode. 317 317 function adjust( event ) { 318 var type = event && event.type;319 320 318 // Make sure we're not in fullscreen mode. 321 319 if ( fullscreen && fullscreen.settings.visible ) { 322 320 return; … … 323 321 } 324 322 325 323 var windowPos = $window.scrollTop(), 324 type = event && event.type, 326 325 resize = type !== 'scroll', 327 326 visual = ( mceEditor && ! mceEditor.isHidden() ), 328 327 buffer = autoresizeMinHeight, … … 467 466 // +[n] for the border around the .wp-editor-container. 468 467 ( windowPos + heights.windowHeight ) <= ( editorPos + editorHeight + heights.bottomHeight + heights.statusBarHeight + borderWidth ) ) { 469 468 470 if ( event && event.deltaHeight > 0 ) { 471 window.scrollBy( 0, event.deltaHeight ); 472 } else if ( advanced ) { 469 if ( advanced ) { 473 470 fixedBottom = true; 474 471 475 472 $statusBar.css( { … … 492 489 493 490 $statusBar.add( $bottom ).attr( 'style', '' ); 494 491 495 ! advanced && $statusBar.css( 'visibility', 'hidden' ); 492 if ( ! advanced ) { 493 $statusBar.css( 'visibility', 'hidden' ); 494 } 496 495 } 497 496 } 498 497