FixedHeader and sorting

FixedHeader and sorting

HSombHSomb Posts: 3Questions: 1Answers: 0
edited November 2013 in FixedHeader
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

Replies

  • HSombHSomb Posts: 3Questions: 1Answers: 0
    Ok, I digged around and managed to find a solution by editing the offset.

    [code]
    "oOffset": {
    "top": 112
    }
    [/code]
This discussion has been closed.