From 7de002f960ddd1d04dd7b6f2578d4f4665b47449 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Sun, 17 Aug 2014 14:14:09 +0000 Subject: [PATCH] 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 --- src/wp-admin/css/admin-menu.css | 2 +- src/wp-admin/js/common.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/css/admin-menu.css b/src/wp-admin/css/admin-menu.css index c737506108..7f317bd335 100644 --- a/src/wp-admin/css/admin-menu.css +++ b/src/wp-admin/css/admin-menu.css @@ -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; diff --git a/src/wp-admin/js/common.js b/src/wp-admin/js/common.js index 0ee8811f50..b61763af06 100644 --- a/src/wp-admin/js/common.js +++ b/src/wp-admin/js/common.js @@ -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);