Skip to content
Snippets Groups Projects
Commit 625463d5 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2269129 by sqndr, michaelfavia: Fixed Permissions sticky header is not place correctly.

parent 116b4f7c
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment