Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep headers sticking to the correct place when scrolling horizontally #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

simonflk
Copy link

I needed this modification for a project I'm working on.

I have added a demo so you can see the fix (table on the left) and the problem (table on the right)
I'm hoping this could be useful to other people. I'm not sure horizontalArea is the best name for the option, so I'm happy if you can think of something better.

Please let me know if you have any questions.
Thanks

/ keeps headers sticking to the correct place when scrolling horizontally /
+ includes demo
+ updates and fixes to the readme
@JustIngvarr
Copy link

JustIngvarr commented Jul 28, 2017

Hi @simonflk @jmosbech. Could you fix the correct handling of the sticky header with 2 or more rows?

<tr>
    <th rowspan="2">Rank</th>
    <th rowspan="1">Name</th>
    <th rowspan="2">Nat.</th>
    <th rowspan="2">Team</th>
    <th class="age" rowspan="2">Age</th>
    <th class="result" rowspan="2">Result</th>
</tr>
<tr>
    <th rowspan="1">Name 2</th>
</tr>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants