bigbite / macy.js

http://macyjs.com/
MIT License
1.3k stars 156 forks source link

Match Macy breakpoints with CSS media queries. #15

Closed Cameron637 closed 7 years ago

Cameron637 commented 7 years ago

Using window.innerWidth instead of document.body.clientWidth. Reason: CSS media queries include the scrollbar in measuring the width of the document, whereas document.body.clientWidth does not. This creates issues with matching up media query styles with Macy breakpoints. window.innerWidth, however, does include the scrollbar and will fix this issue.