Skip to content

Commit

Permalink
Fixed media query on window resize
Browse files Browse the repository at this point in the history
  • Loading branch information
d-oliveros committed Jan 12, 2015
1 parent 9d25366 commit 129ed44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/sticky.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/sticky.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@

function onResize() {
initialCSS.offsetWidth = elem.offsetWidth;
checkIfShouldStick();
}

function onDestroy() {
Expand Down

0 comments on commit 129ed44

Please sign in to comment.