robinpoort / vanilla-js-responsive-menu

A vanilla JS responsive menu plugin
MIT License
33 stars 5 forks source link

Use dom element to see if the width should change #7

Closed robinpoort closed 8 years ago

robinpoort commented 8 years ago

Right now depending on scrollbars the width of JS is different than the css media querie width.

By using a DOM element that hides when the menu appears using a CSS media querie we know it's always the same.

robinpoort commented 8 years ago

Merged to master and deployed as version 1.1.2