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

Responsive improvement and fix header cells width #7

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

Conversation

bascoder
Copy link

@bascoder bascoder commented Oct 8, 2015

Responsive

I moved the anonymous function to a named function.
I added a window resize handler that will call InitStickyHeaderseInit().
This function removes the old sticky header and handlers. Finally it will call initStickyHeaders() again.

Cell width

To fix the header cell width I changed line 30 to use the outerWidth() property instead of width(). This will take the full width of header cells.

Originally when the window size changes StickyHeader will keep using old values.
With the addition of jQuery(window).on('resize', reInitStickyHeaders); the init function will run again on resizing of the window.
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