headerOffset no longer working after 3.2.0 upgrade

headerOffset no longer working after 3.2.0 upgrade

James3James3 Posts: 9Questions: 2Answers: 0
edited December 2021 in FixedHeader

When I attempted to upgrade my fixed header resources from 3.1.9 to 3.2.0, my headerOffset value stopped working. Here's my config code:

fixedHeader: {
    header: true,
    headerOffset: 55
}

CSS resource: https://cdn.datatables.net/v/bs5/dt-1.11.3/fh-3.2.0/datatables.min.css
JS resource: https://cdn.datatables.net/v/bs5/dt-1.11.3/fh-3.2.0/datatables.min.js

All that is required to restore the header offset is to change the FixedHeader JS include from version from 3.2.0 back to 3.1.9. The CSS can remain at 3.2.0.

To be clear, the fixed-header functionality IS working, it's simply ignoring my headerOffset value. Any suggestions?

Replies

  • colincolin Posts: 15,177Questions: 1Answers: 2,590

    It appears to be working as expected here. We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • James3James3 Posts: 9Questions: 2Answers: 0

    @colin you're right that it appears to work as expected in the example you posted. I'll have to dig a little deeper as I can't post the page in question.

    Unfortunately, the problem persists for me, and changing the JS from 3.2.0 to 3.1.9 is the solution for now until I can figure out how to replicate the issue outside of my site.

  • colincolin Posts: 15,177Questions: 1Answers: 2,590

    I'm guessing there could be some conflicting classes, perhaps, but yep, we would need to see it - styling issues are stinkers to resolve without seeing them,

    Colin

Sign In or Register to comment.