Ticket #29293: 29293.2.patch
File 29293.2.patch, 2.5 KB (added by , 10 years ago) |
---|
-
src/wp-admin/js/editor-expand.js
163 163 cursorTop = cursorTop - buffer; 164 164 cursorBottom = cursorBottom + buffer; 165 165 editorTop = $adminBar.outerHeight() + $tools.outerHeight() + $visualTop.outerHeight(); 166 editorBottom = windowHeight - $bottom.outerHeight() ;166 editorBottom = windowHeight - $bottom.outerHeight() - $statusBar.outerHeight(); 167 167 168 168 // Don't scroll if the node is taller than the visible part of the editor 169 169 if ( editorBottom - editorTop < offset.height ) { … … 268 268 width: contentWrapWidth 269 269 } ); 270 270 271 if ( visual && $statusBar.length ) { 272 $statusBar.css( { 273 position: '', 274 bottom: '', 275 width: '' 276 } ); 277 } 278 271 279 $bottom.css( { 272 280 position: 'relative', 273 281 bottom: 'auto', … … 335 343 336 344 // Maybe adjust the bottom bar. 337 345 if ( ( ! fixedBottom || resize ) && 338 // +[n] for the border around the .wp-editor-container. 339 ( windowPos + windowHeight ) <= ( editorPos + editorHeight + bottomHeight + statusBarHeight + borderWidth ) ) { 340 346 // +[n] for the border around the .wp-editor-container. 347 ( windowPos + windowHeight ) <= ( editorPos + editorHeight + bottomHeight + statusBarHeight + borderWidth ) ) { 341 348 fixedBottom = true; 342 349 350 if ( visual && $statusBar.length ) { 351 $statusBar.css( { 352 position: 'fixed', 353 bottom: bottomHeight, 354 width: contentWrapWidth - ( borderWidth * 2 ) 355 } ); 356 } 357 343 358 $bottom.css( { 344 359 position: 'fixed', 345 360 bottom: 0, … … 350 365 ( windowPos + windowHeight ) > ( editorPos + editorHeight + bottomHeight + statusBarHeight - borderWidth ) ) { 351 366 fixedBottom = false; 352 367 368 if ( visual && $statusBar.length ) { 369 $statusBar.css( { 370 position: '', 371 bottom: '', 372 width: '' 373 } ); 374 } 375 353 376 $bottom.css( { 354 377 position: 'relative', 355 378 bottom: 'auto', … … 554 577 fullscreen && fullscreen.pubsub.unsubscribe( 'hidden', fullscreenHide ); 555 578 556 579 // Reset all css 557 $.each( [ $visualTop, $textTop, $tools, $bottom, $ contentWrap, $visualEditor, $textEditor, $sideSortables ], function( i, element ) {580 $.each( [ $visualTop, $textTop, $tools, $bottom, $statusBar, $contentWrap, $visualEditor, $textEditor, $sideSortables ], function( i, element ) { 558 581 element && element.attr( 'style', '' ); 559 582 }); 560 583