FixedHeader and sorting
FixedHeader and sorting
HSomb
Posts: 3Questions: 1Answers: 0
Hi,
I've just created a test table with a 40 rows and I'm using FixedHeader. If I sort the list before I do any scrolling the fixed header works fine but if I sort the table while I'm half way through it, the fixed header jumps to the top of the HTML page, leaving the table.
Just using regular
[code]
var oTable = $('#tblTest').dataTable();
new FixedHeader(oTable);
[/code]
The only specific thing is that the table is inside a position:absolute div.
[code]
...
CSS
.mainArea {position: absolute; top: 112px;}
[/code]
Any input on how to solve this would be appreciated.
Best
Hugo
I've just created a test table with a 40 rows and I'm using FixedHeader. If I sort the list before I do any scrolling the fixed header works fine but if I sort the table while I'm half way through it, the fixed header jumps to the top of the HTML page, leaving the table.
Just using regular
[code]
var oTable = $('#tblTest').dataTable();
new FixedHeader(oTable);
[/code]
The only specific thing is that the table is inside a position:absolute div.
[code]
...
CSS
.mainArea {position: absolute; top: 112px;}
[/code]
Any input on how to solve this would be appreciated.
Best
Hugo
This discussion has been closed.
Replies
[code]
"oOffset": {
"top": 112
}
[/code]