From 4ae28ff09fc6896ad35f824b8f63baa4cc10956b Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Wed, 29 Jan 2014 05:55:19 -0500
Subject: [PATCH] Also adapt fixed table header to vertical body scrolling

---
 program/js/list.js |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/program/js/list.js b/program/js/list.js
index c49a897..c5ecf6c 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -195,7 +195,12 @@
 
     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);

--
Gitblit v1.9.1