Ticket #17329: 17329.2.diff
File 17329.2.diff, 3.2 KB (added by , 14 years ago) |
---|
-
wp-includes/js/thickbox/thickbox.css
49 49 background: #ffffff; 50 50 z-index: 102; 51 51 color:#000000; 52 display:none;53 52 text-align:left; 54 top: 50%;53 top:-9999px; 55 54 left:50%; 56 55 border: 1px solid #555; 57 56 -moz-box-shadow: rgba(0,0,0,1) 0 4px 30px; -
wp-includes/js/thickbox/thickbox.js
268 268 269 269 //helper functions below 270 270 function tb_showIframe(){ 271 offset_top = jQuery("#TB_window").offset().top; 272 if( offset_top < 0 ) { 273 adminbar_height = ( jQuery('body.admin-bar').length ) ? 28 : 0; 274 offset_top = 20 + adminbar_height + 'px'; 275 } 271 276 jQuery("#TB_load").remove(); 272 jQuery("#TB_window").css({display:"block" });277 jQuery("#TB_window").css({display:"block", top: offset_top}); 273 278 } 274 279 275 280 function tb_remove() { -
wp-admin/js/theme-preview.dev.js
10 10 11 11 if ( tbWindow.size() ) { 12 12 tbWindow.width(w).height(h); 13 offset_top = tbWindow.offset().top; 13 14 $('#TB_iframeContent').width(w).height(h - 27); 14 15 tbWindow.css({'margin-left': '-' + parseInt((w / 2),10) + 'px'}); 15 if ( typeof document.body.style.maxWidth != 'undefined' )16 if ( typeof document.body.style.maxWidth != 'undefined' && offset_top > 0 ) 16 17 tbWindow.css({'top':'30px','margin-top':'0'}); 17 18 } 18 19 }; -
wp-admin/js/media-upload.dev.js
40 40 41 41 if ( tbWindow.size() ) { 42 42 tbWindow.width( W - 50 ).height( H - 45 - adminbar_height ); 43 offset_top = tbWindow.offset().top; 43 44 $('#TB_iframeContent').width( W - 50 ).height( H - 75 - adminbar_height ); 44 45 tbWindow.css({'margin-left': '-' + parseInt((( W - 50 ) / 2),10) + 'px'}); 45 if ( typeof document.body.style.maxWidth != 'undefined' )46 if ( typeof document.body.style.maxWidth != 'undefined' && offset_top > 0 ) 46 47 tbWindow.css({'top': 20 + adminbar_height + 'px','margin-top':'0'}); 47 48 }; 48 49 -
wp-admin/js/plugin-install.dev.js
9 9 10 10 if ( tbWindow.size() ) { 11 11 tbWindow.width( W - 50 ).height( H - 45 - adminbar_height ); 12 offset_top = tbWindow.offset().top; 12 13 $('#TB_iframeContent').width( W - 50 ).height( H - 75 - adminbar_height ); 13 14 tbWindow.css({'margin-left': '-' + parseInt((( W - 50 ) / 2),10) + 'px'}); 14 if ( typeof document.body.style.maxWidth != 'undefined' )15 if ( typeof document.body.style.maxWidth != 'undefined' && offset_top > 0 ) 15 16 tbWindow.css({'top': 20 + adminbar_height + 'px','margin-top':'0'}); 16 17 }; 17 18