Skip to content

Sticky Headers + horizontal scrolling in wrapper #1455

@bencf

Description

@bencf

I am looking to be able to use the sticky headers widget in a way that I can't find documented anywhere but I think is a fairly common use case: the headers are sticky in vertical scrolling of the window, but also scroll horizontally with the table based on a table wrapper.

This is useful for sticky headers on mobile. The wrapper allows for horizontal scrolling of a table when the viewport is not wide enough without having to horizontally scroll the entire page. But the table itself should still be fully visible vertically - the wrapper shouldn't cut that off.

This works fine, except that as you scroll the wrapper horizontally the sticky header doesn't scroll with it.

Here's an example: https://jsfiddle.net/nnxsvwn2/6/

Any thoughts on how to achieve this? Or if there's another way to accomplish what I'm looking to do?

Thanks in advance for any and all help, and let me know if there's anything I can clarify.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions