No description
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 |
||
---|---|---|
.phan | ||
i18n | ||
includes | ||
resources | ||
screenshots | ||
.eslintrc.json | ||
.gitignore | ||
.gitreview | ||
.phpcs.xml | ||
.stylelintrc.json | ||
CODE_OF_CONDUCT.md | ||
composer.json | ||
COPYING | ||
Gruntfile.js | ||
hooks.txt | ||
package-lock.json | ||
package.json | ||
skin.json |