[llvm-commits] [LNT] r161844 - /lnt/trunk/lnt/server/ui/static/v4_global_status.js

Michael Gottesman mgottesman at apple.com
Mon Aug 13 21:21:18 PDT 2012


Author: mgottesman
Date: Mon Aug 13 23:21:17 2012
New Revision: 161844

URL: http://llvm.org/viewvc/llvm-project?rev=161844&view=rev
Log:
[LNT] v4_global_status: Wired up table header so that when a user scrolls down, it becomes fixed.

Modified:
    lnt/trunk/lnt/server/ui/static/v4_global_status.js

Modified: lnt/trunk/lnt/server/ui/static/v4_global_status.js
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/static/v4_global_status.js?rev=161844&r1=161843&r2=161844&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/static/v4_global_status.js (original)
+++ lnt/trunk/lnt/server/ui/static/v4_global_status.js Mon Aug 13 23:21:17 2012
@@ -20,6 +20,27 @@
             autoHeight: false,
             active: 1
         });
+        
+        // Make our table headers fixed when we scroll.
+        $('table#data-table th').each(function(i,v) {
+            // Ensure that the headers of our table do not
+            // change size when our table header switches to
+            // fixed and back.
+            var th = $(this);
+            var width = th.outerWidth(true);
+            th.css('width', width);
+            th.css('min-width', width);
+            th.css('max-width', width);
+            th.css('margin', '0px');
+            th.css('padding', '0px');
+            
+            var height = th.outerHeight(true);
+            th.css('height', height);
+            th.css('min-height', height);
+            th.css('max-height', height);
+        });        
+        $('#data-table-header').scrollToFixed();
+
     });
     
     /* Helper Functions */





More information about the llvm-commits mailing list