Also adapt fixed table header to vertical body scrolling
| | |
| | | this.iphone = this.safari && (this.agent_lc.indexOf('iphone') > 0 || this.agent_lc.indexOf('ipod') > 0); |
| | | this.ipad = this.safari && this.agent_lc.indexOf('ipad') > 0; |
| | | this.opera = window.opera ? true : false; |
| | | this.webkit = this.safari || this.chrome; |
| | | } |
| | | |
| | | if (!this.vendver) { |
| | |
| | | |
| | | var me = this; |
| | | $(window).resize(function(){ me.resize() }); |
| | | $(window).scroll(function(){ me.fixed_header.css({ 'marginLeft': (-$(window).scrollLeft()) + 'px' }) }); |
| | | $(window).scroll(function(){ |
| | | var w = $(window); |
| | | me.fixed_header.css('marginLeft', (-w.scrollLeft()) + 'px'); |
| | | if (!bw.webkit) |
| | | me.fixed_header.css('marginTop', (-w.scrollTop()) + 'px'); |
| | | }); |
| | | } |
| | | else { |
| | | $(this.fixed_header).find('thead').replaceWith(clone); |