Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Horizontal table scroll proof of concept:
- var intialTableHeight = $(".table-wr").height();
- function horTableScroll() {
- var tableHeight = $(window).height() - $(".table-wr").offset().top + $(window).scrollTop();
- if (intialTableHeight > tableHeight) {
- $(".table-wr").css('height', tableHeight);
- }
- }
- horTableScroll();
- $(window).scroll(function(){
- horTableScroll();
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement