Fixed headers are showing too early
Fixed headers are showing too early
Upkeeply
Posts: 7Questions: 3Answers: 0
https://live.datatables.net/revodihu/1
if you watch the video below you will see what I mean.
https://drive.google.com/uc?id=1_EdtnQGvYL-NCUnSRm_Opcini_urv9HL
Answers
Your test case HTML has
div
elements that are created by Datatables causing a duplicate set of Datatables elements to be created. It took awhile to figure this outMaybe you just need
fixedHeader: true
instead of setting an offset. Like this:https://live.datatables.net/revodihu/2/edit
Also, we don't have access to view the video.
Kevin
Ya, I had just copied html in. Working 2 fulltime jobs, one I don't get paid for, so getting time to put up proper test cases is slim.
Here is a video
https://jam.dev/c/b83b4719-4ed3-448d-9873-040d0a4a963e
I really need to figure this out.
This is my updated test case, it works no problem. I am wracking my brain.
https://live.datatables.net/revodihu/4/
Obviously, it appears some other code is interfering. What, I don't know.
Figured it out. Some javascript from the template I am using to make the header sticky. Removed it, all Is well, except some pages it's not being "fixed"