summaryrefslogtreecommitdiff
path: root/program/js/list.js
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-01-29 11:55:19 +0100
committerThomas Bruederli <thomas@roundcube.net>2014-01-29 11:55:19 +0100
commit4ae28ff09fc6896ad35f824b8f63baa4cc10956b (patch)
tree2589a3d07451ca84da5409018ddc9c340054a1cb /program/js/list.js
parentff8f2ede349b8b75371d6d2a98c2a1820cf56dbb (diff)
Also adapt fixed table header to vertical body scrolling
Diffstat (limited to 'program/js/list.js')
-rw-r--r--program/js/list.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/program/js/list.js b/program/js/list.js
index c49a8977c..c5ecf6c22 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -195,7 +195,12 @@ init_fixed_header: function()
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);