Skip to content

Commit

Permalink
Added window resize
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan committed Feb 23, 2015
1 parent 42eccfb commit 909e348
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions assets/jquery.alton.js
Original file line number Diff line number Diff line change
Expand Up @@ -605,8 +605,10 @@
}
}
$(window).resize(function() {
$(singleSlide[i]).css('height', $(window).outerHeight());
$(singleSlide[i]).outerHeight( $(window).outerHeight());
$(singleSlide).each(function() {
$(this).css('height', $(window).outerHeight());
$(this).outerHeight($(window).outerHeight());
});
});
});
};
Expand Down
2 changes: 1 addition & 1 deletion assets/jquery.alton.min.js

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

0 comments on commit 909e348

Please sign in to comment.