equal
deleted
inserted
replaced
45 |
45 |
46 if ( $('#wpadminbar').length ) { |
46 if ( $('#wpadminbar').length ) { |
47 adminbar_height = parseInt( $('#wpadminbar').css('height'), 10 ); |
47 adminbar_height = parseInt( $('#wpadminbar').css('height'), 10 ); |
48 } |
48 } |
49 |
49 |
50 if ( tbWindow.size() ) { |
50 if ( tbWindow.length ) { |
51 tbWindow.width( W - 50 ).height( H - 45 - adminbar_height ); |
51 tbWindow.width( W - 50 ).height( H - 45 - adminbar_height ); |
52 $('#TB_iframeContent').width( W - 50 ).height( H - 75 - adminbar_height ); |
52 $('#TB_iframeContent').width( W - 50 ).height( H - 75 - adminbar_height ); |
53 tbWindow.css({'margin-left': '-' + parseInt( ( ( W - 50 ) / 2 ), 10 ) + 'px'}); |
53 tbWindow.css({'margin-left': '-' + parseInt( ( ( W - 50 ) / 2 ), 10 ) + 'px'}); |
54 if ( typeof document.body.style.maxWidth !== 'undefined' ) |
54 if ( typeof document.body.style.maxWidth !== 'undefined' ) |
55 tbWindow.css({'top': 20 + adminbar_height + 'px', 'margin-top': '0'}); |
55 tbWindow.css({'top': 20 + adminbar_height + 'px', 'margin-top': '0'}); |