Specify min width on pages that use TinyMCE. Props azaozz. fixes #5975
git-svn-id: http://svn.automattic.com/wordpress/trunk@6996 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8d42a5d342
commit
c615381288
|
@ -6,6 +6,19 @@ if ( $editing ) {
|
|||
wp_enqueue_script( 'wp_tiny_mce' );
|
||||
}
|
||||
|
||||
$min_width_pages = array( 'post.php', 'post-new.php', 'page.php', 'page-new.php', 'widgets.php', 'comment.php' );
|
||||
$the_current_page = preg_replace('|^.*/wp-admin/|i', '', $_SERVER['PHP_SELF']);
|
||||
$ie6_no_scrollbar = true;
|
||||
|
||||
function add_minwidth($c) {
|
||||
return $c . 'minwidth ';
|
||||
}
|
||||
|
||||
if ( in_array( $the_current_page, $min_width_pages ) ) {
|
||||
$ie6_no_scrollbar = false;
|
||||
add_filter( 'admin_body_class', 'add_minwidth' );
|
||||
}
|
||||
|
||||
get_admin_page_title();
|
||||
|
||||
?>
|
||||
|
@ -26,7 +39,7 @@ wp_admin_css();
|
|||
//<![CDATA[
|
||||
addLoadEvent=(function(){var e=[],t,s,n,i,o,d=document,w=window,r='readyState',c='onreadystatechange',x=function(){n=1;clearInterval(t);while(i=e.shift())i();if(s)s[c]=''};return function(f){if(n)return f();if(!e[0]){d.addEventListener&&d.addEventListener("DOMContentLoaded",x,false);/*@cc_on@*//*@if(@_win32)d.write("<script id=__ie_onload defer src=//0><\/scr"+"ipt>");s=d.getElementById("__ie_onload");s[c]=function(){s[r]=="complete"&&x()};/*@end@*/if(/WebKit/i.test(navigator.userAgent))t=setInterval(function(){/loaded|complete/.test(d[r])&&x()},10);o=w.onload;w.onload=function(){x();o&&o()}}e.push(f)}})();//]]>
|
||||
</script>
|
||||
<?php if ( ($parent_file != 'link-manager.php') && ($parent_file != 'options-general.php') ) : ?>
|
||||
<?php if ( ($parent_file != 'link-manager.php') && ($parent_file != 'options-general.php') && $ie6_no_scrollbar ) : ?>
|
||||
<style type="text/css">* html { overflow-x: hidden; }</style>
|
||||
<?php endif;
|
||||
if ( isset($page_hook) )
|
||||
|
|
|
@ -7,4 +7,17 @@
|
|||
#submenu li a.current {
|
||||
background:none;
|
||||
border:none;
|
||||
}
|
||||
}
|
||||
|
||||
* html body.minwidth {
|
||||
_width: expression(document.documentElement.clientWidth < 942 ? "940px" : "auto");
|
||||
}
|
||||
|
||||
* html #poststuff #titlediv {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
* html div.widget-liquid-left-holder, * html div.widget-liquid-right {
|
||||
display: block;
|
||||
position: relative;
|
||||
}
|
||||
|
|
|
@ -1328,3 +1328,7 @@ p#post-search {
|
|||
.commentlist .avatar {
|
||||
vertical-align:text-top;
|
||||
}
|
||||
|
||||
body.minwidth {
|
||||
min-width: 940px;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue