Fake a "non-responsive" window width for IE < 9 when folding/unfolding the menu (old IE doesn't support @media), fixes #26458.
git-svn-id: https://develop.svn.wordpress.org/trunk@26785 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a3eccc31e3
commit
76d75b7d22
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user