6c53b601f8
If the page was long enough to have a vertical scrollbar, the check for `$( window ).width()` would be incorrect because of the width of the scrollbar itself. The correct value is `$( window ).outerWidth()`. But rather than deal with that, we can instead use the API specifically for matching media queries [1], then copy-paste the media query from CSS and not have to think about it at all! [1] https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia Bug: T227916 Change-Id: I79478040620391f5391b10aee52134fde0b88adf |
||
---|---|---|
.. | ||
images | ||
skinStyles | ||
IE60Fixes.css | ||
IE70Fixes.css | ||
mobile-echo.js | ||
mobile-echo.less | ||
mobile-uls.js | ||
mobile.js | ||
mobile.js.less | ||
screen-common.less | ||
screen-desktop.css | ||
screen-mobile.less | ||
variables.less |