FixedHeader initializes in upper left
FixedHeader initializes in upper left
peterkronenberg
Posts: 112Questions: 0Answers: 0
Hi Allan,
Datatables is absolutely amazing.. Thank you. I'm having a slight problem with FixedHeader. When it initializes, the cloned header is in the upper left. As soon as I start to scroll, it disappears and everything is fine from that point on.
Here are links to the code as well as a screen shot:
http://dl.dropbox.com/u/4104018/fixedHeaderBug.html
http://dl.dropbox.com/u/4104018/FixedHeaderBug.bmp
Thanks
Peter
Datatables is absolutely amazing.. Thank you. I'm having a slight problem with FixedHeader. When it initializes, the cloned header is in the upper left. As soon as I start to scroll, it disappears and everything is fine from that point on.
Here are links to the code as well as a screen shot:
http://dl.dropbox.com/u/4104018/fixedHeaderBug.html
http://dl.dropbox.com/u/4104018/FixedHeaderBug.bmp
Thanks
Peter
This discussion has been closed.
Replies
Thanks for the kind words :-)
I'm not certain, but I suspect that this is the issue:
[code]
// Start hidden
$('.error').hide();
$('#mainDiv').hide();
[/code]
When the element is hidden, the browser doesn't bother calculating position etc, as an optimisation, so when FixedHeader queries the table for it's position, it will just get '0' for top / left positioning. If you comment those lines out, does it work?
Allan