summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2014-06-03 13:35:48 -0500
committerAlex Pott2014-06-03 13:35:48 -0500
commit625463d5572d930e01b1f70404344e40949c5cda (patch)
tree11ac578d339b3cd2d12b0039448fca28c5139a28
parent116b4f7ceefededb27f5f6ab95ea4a893944bfeb (diff)
Issue #2269129 by sqndr, michaelfavia: Fixed Permissions sticky header is not place correctly.
-rw-r--r--core/misc/tableheader.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/misc/tableheader.js b/core/misc/tableheader.js
index a558dd6..448d0b2 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);