Ticket #29293: 29293.3.patch
File 29293.3.patch, 2.0 KB (added by , 10 years ago) |
---|
-
src/wp-admin/js/editor-expand.js
268 268 width: contentWrapWidth 269 269 } ); 270 270 271 if ( $statusBar.length && visual ) { 272 $statusBar.css( { 273 position: '', 274 bottom: '', 275 width: '', 276 borderBottom: '' 277 } ); 278 } 279 271 280 $bottom.css( { 272 281 position: 'relative', 273 282 bottom: 'auto', 274 width: '100%', 275 borderTop: 'none' 283 width: '100%' 276 284 } ); 277 285 } 278 286 } else { … … 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 ( $statusBar.length && visual ) { 351 $statusBar.css( { 352 position: 'fixed', 353 bottom: bottomHeight, 354 width: contentWrapWidth - ( borderWidth * 2 ), 355 borderBottom: '1px solid #dedede' 356 } ); 357 } 358 343 359 $bottom.css( { 344 360 position: 'fixed', 345 361 bottom: 0, 346 width: contentWrapWidth, 347 borderTop: '1px solid #dedede' 362 width: contentWrapWidth 348 363 } ); 349 364 } else if ( ( fixedBottom || resize ) && 350 365 ( windowPos + windowHeight ) > ( editorPos + editorHeight + bottomHeight + statusBarHeight - borderWidth ) ) { 351 366 fixedBottom = false; 352 367 368 if ( $statusBar.length && visual ) { 369 $statusBar.css( { 370 position: '', 371 bottom: '', 372 width: '', 373 borderBottom: '' 374 } ); 375 } 376 353 377 $bottom.css( { 354 378 position: 'relative', 355 379 bottom: 'auto', 356 width: '100%', 357 borderTop: 'none' 380 width: '100%' 358 381 } ); 359 382 } 360 383 }