Admin Menu: Auto fold the menu at 960px.

This gives us some more room at the post edit screen.

props vinod dalvi for initial patch.
fixes #28592.

git-svn-id: https://develop.svn.wordpress.org/trunk@29518 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90) 2014-08-17 14:14:09 +00:00
parent a1aa297d82
commit 7de002f960
2 changed files with 3 additions and 3 deletions

View File

@ -612,7 +612,7 @@ li#wp-admin-bar-menu-toggle {
/* Auto-folding of the admin menu */
@media only screen and (max-width: 900px) {
@media only screen and (max-width: 960px) {
.auto-fold #wpcontent,
.auto-fold #wpfooter {
margin-left: 36px;

View File

@ -193,10 +193,10 @@ $(document).ready( function() {
respWidth = Math.max( window.innerWidth, document.documentElement.clientWidth );
} else {
// IE < 9 doesn't support @media CSS rules
respWidth = 901;
respWidth = 961;
}
if ( respWidth && respWidth < 900 ) {
if ( respWidth && respWidth < 960 ) {
if ( body.hasClass('auto-fold') ) {
body.removeClass('auto-fold').removeClass('folded');
setUserSetting('unfold', 1);