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

Reevaluate table and header position and height when needed #10

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

HarlemSquirrel
Copy link

@HarlemSquirrel HarlemSquirrel commented Feb 27, 2018

This helps with dom changes such as showing/hiding an element or filtering a table and with window resizing.

  • Move table and header position and size evaluation to function
  • Reevaluate on page resize
  • Reevalute on scroll if the body height has changed

Reevalute the table height and position on scroll.
This helps with dom changes such as showing/hiding an element
or filtering a table.
@HarlemSquirrel
Copy link
Author

Thanks for your awesome library! I thought you might like this small addition I'm using for a page that changes as the user filters the table or hides/reveals some elements.

- Move table header position and size evaluation to function
- Reevaluate on page resize
- Reevalute on scroll if the body height has changed
@HarlemSquirrel HarlemSquirrel changed the title Update stickyheader.jquery.js Reevaluate table and header position and height when needed Feb 28, 2018
Kevin McCormack added 2 commits March 1, 2018 14:05
- Fix th widths
- Use spaces instead of tabs for indentation
Account for other scripts that might set header width attr
Kevin McCormack added 3 commits March 20, 2018 17:33
- Set header classes on click to account for sorting scripts etc.
- Remove unneeded comment
- Simplify no_fixed_support
Use a global constant with a run() function so we can call this
from other scripts such as a `turbolinks:load` event.
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.

1 participant