mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-04 18:01:42 +01:00
Fake a "non-responsive" window width for IE < 9 when folding/unfolding the menu (old IE doesn't support @media), fixes #26458.
Built from https://develop.svn.wordpress.org/trunk@26785 git-svn-id: http://core.svn.wordpress.org/trunk@26672 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7192115dca
commit
95a02fbe43
@ -188,8 +188,8 @@ $(document).ready( function() {
|
||||
// window.innerWidth is affected by zooming on phones
|
||||
respWidth = Math.max( window.innerWidth, document.documentElement.clientWidth );
|
||||
} else {
|
||||
// Exclude IE < 9, it doesn't support @media CSS rules
|
||||
return;
|
||||
// IE < 9 doesn't support @media CSS rules
|
||||
respWidth = 901;
|
||||
}
|
||||
|
||||
if ( respWidth && respWidth < 900 ) {
|
||||
|
2
wp-admin/js/common.min.js
vendored
2
wp-admin/js/common.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user