Ticket #27423: 27423.21.patch
File 27423.21.patch, 3.2 KB (added by , 10 years ago) |
---|
-
src/wp-admin/js/editor-expand.js
223 223 } 224 224 225 225 function mceHide() { 226 var wrapHeight = $( '#wpwrap' ).height(); 226 window.setTimeout( function() { 227 var top = $contentWrap.offset().top; 227 228 228 textEditorResize(); 229 230 if ( wrapHeight && $window.scrollTop() > wrapHeight ) { 231 window.scrollTo( window.pageXOffset, wrapHeight - 1 ); 232 } 229 if ( window.pageYOffset > top ) { 230 window.scrollTo( window.pageXOffset, top - heights.adminBarHeight ); 231 } 233 232 234 adjust(); 233 adjust(); 234 }, 100 ); 235 235 } 236 236 237 237 mceBind = function() { -
src/wp-includes/css/media-views.css
2511 2511 } 2512 2512 } 2513 2513 2514 . attachments[data-columns="1"] .attachment {2514 .media-frame-content[data-columns="1"] .attachment { 2515 2515 width: 100%; 2516 2516 } 2517 2517 2518 . attachments[data-columns="2"] .attachment {2518 .media-frame-content[data-columns="2"] .attachment { 2519 2519 width: 50%; 2520 2520 } 2521 2521 2522 . attachments[data-columns="3"] .attachment {2522 .media-frame-content[data-columns="3"] .attachment { 2523 2523 width: 33.3%; 2524 2524 } 2525 2525 2526 . attachments[data-columns="4"] .attachment {2526 .media-frame-content[data-columns="4"] .attachment { 2527 2527 width: 25%; 2528 2528 } 2529 2529 2530 . attachments[data-columns="5"] .attachment {2530 .media-frame-content[data-columns="5"] .attachment { 2531 2531 width: 20%; 2532 2532 } 2533 2533 2534 . attachments[data-columns="6"] .attachment {2534 .media-frame-content[data-columns="6"] .attachment { 2535 2535 width: 16.6%; 2536 2536 } 2537 2537 2538 . attachments[data-columns="7"] .attachment {2538 .media-frame-content[data-columns="7"] .attachment { 2539 2539 width: 14.2%; 2540 2540 } 2541 2541 2542 . attachments[data-columns="8"] .attachment {2542 .media-frame-content[data-columns="8"] .attachment { 2543 2543 width: 12.5%; 2544 2544 } 2545 2545 2546 . attachments[data-columns="9"] .attachment {2546 .media-frame-content[data-columns="9"] .attachment { 2547 2547 width: 11.1%; 2548 2548 } 2549 2549 2550 . attachments[data-columns="10"] .attachment {2550 .media-frame-content[data-columns="10"] .attachment { 2551 2551 width: 10%; 2552 2552 } 2553 2553 2554 . attachments[data-columns="11"] .attachment {2554 .media-frame-content[data-columns="11"] .attachment { 2555 2555 width: 9%; 2556 2556 } 2557 2557 2558 . attachments[data-columns="12"] .attachment {2558 .media-frame-content[data-columns="12"] .attachment { 2559 2559 width: 8.3%; 2560 2560 } -
src/wp-includes/js/media-views.js
5230 5230 _.bindAll( this, 'setColumns' ); 5231 5231 5232 5232 if ( this.options.resize ) { 5233 $( window ).on( 'resize.media-modal-columns', this.setColumns);5233 $( window ).on( 'resize.media-modal-columns', _.debounce( this.setColumns, this.options.refreshSensitivity ) ); 5234 5234 this.controller.on( 'open', this.setColumns ); 5235 5235 } 5236 5236 … … 5308 5308 this.columns = Math.min( Math.round( width / this.options.idealColumnWidth ), 12 ) || 1; 5309 5309 5310 5310 if ( ! prev || prev !== this.columns ) { 5311 this.$el. attr( 'data-columns', this.columns );5311 this.$el.parents( '.media-frame-content' ).attr( 'data-columns', this.columns ); 5312 5312 } 5313 5313 } 5314 5314 },