Skip to content

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