summaryrefslogtreecommitdiff
path: root/program/js/list.js
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-01-29 11:27:26 +0100
committerThomas Bruederli <thomas@roundcube.net>2014-01-29 11:27:26 +0100
commitcbd8f7c5d2ca517c42d19ff9b92982be9f539a96 (patch)
treebe43b3d1d7d866e4072740bc2d54e02b91faa946 /program/js/list.js
parent9675702579700124b4309932df6566423ce385ad (diff)
Adjust fixed header position when scrolling (#1295420)
Diffstat (limited to 'program/js/list.js')
-rw-r--r--program/js/list.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/program/js/list.js b/program/js/list.js
index 022ed3180..c49a8977c 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -195,6 +195,7 @@ init_fixed_header: function()
var me = this;
$(window).resize(function(){ me.resize() });
+ $(window).scroll(function(){ me.fixed_header.css({ 'marginLeft': (-$(window).scrollLeft()) + 'px' }) });
}
else {
$(this.fixed_header).find('thead').replaceWith(clone);
@@ -221,6 +222,8 @@ resize: function()
$(this.thead).find('tr td').each(function(index) {
$(this).css('width', column_widths[index]);
});
+
+ $(window).scroll();
},
/**