Fixed headers are showing too early

Fixed headers are showing too early

UpkeeplyUpkeeply Posts: 7Questions: 3Answers: 0

Answers

  • kthorngrenkthorngren Posts: 20,275Questions: 26Answers: 4,765

    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 out :smile:

    Maybe 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

  • UpkeeplyUpkeeply Posts: 7Questions: 3Answers: 0
    edited April 2023

    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.

  • UpkeeplyUpkeeply Posts: 7Questions: 3Answers: 0

    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"

Sign In or Register to comment.