From 625463d5572d930e01b1f70404344e40949c5cda Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Tue, 3 Jun 2014 13:35:48 -0500 Subject: [PATCH] Issue #2269129 by sqndr, michaelfavia: Fixed Permissions sticky header is not place correctly. --- core/misc/tableheader.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/misc/tableheader.js b/core/misc/tableheader.js index a558dd6fc980..448d0b289d6e 100644 --- a/core/misc/tableheader.js +++ b/core/misc/tableheader.js @@ -21,6 +21,7 @@ for (var i = 0, il = $tables.length; i < il; i++) { TableHeader.tables.push(new TableHeader($tables[i])); } + forTables('onScroll'); } // Helper method to loop through tables and execute a method. @@ -171,10 +172,10 @@ */ stickyPosition: function (offsetTop, offsetLeft) { var css = {}; - if (!isNaN(offsetTop)) { + if (typeof offsetTop === 'number') { css.top = offsetTop + 'px'; } - if (!isNaN(offsetLeft)) { + if (typeof offsetLeft === 'number') { css.left = (this.tableOffset.left - offsetLeft) + 'px'; } return this.$stickyTable.css(css); -- GitLab