From cbd8f7c5d2ca517c42d19ff9b92982be9f539a96 Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Wed, 29 Jan 2014 05:27:26 -0500
Subject: [PATCH] Adjust fixed header position when scrolling (#1295420)
---
program/js/list.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/program/js/list.js b/program/js/list.js
index 022ed31..c49a897 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -195,6 +195,7 @@
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 @@
$(this.thead).find('tr td').each(function(index) {
$(this).css('width', column_widths[index]);
});
+
+ $(window).scroll();
},
/**
--
Gitblit v1.9.1