Skip to content

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