Skip to content

Commit

Permalink
Update: (Fixes #504) Side Navigation JS breakpoint region should use …
Browse files Browse the repository at this point in the history
…window size + scrollbar
  • Loading branch information
pat270 committed Feb 2, 2018
1 parent 3ecab7e commit 8eea163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/clay/src/js/side-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
var screenMd = 992;
var screenLg = 1200;

var windowWidth = $(window).width();
var windowWidth = window.innerWidth;
var region = '';

if (windowWidth >= screenLg) {
Expand Down

0 comments on commit 8eea163

Please sign in to comment.