Created
August 9, 2017 19:18
-
-
Save NickDeckerDevs/b0b4eecc22e54fcabe5ee0f57e9eb477 to your computer and use it in GitHub Desktop.
Sticky Header HubDB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Append column headers to top*/ | |
| $('.editor-wrapper').append('<div class="fixed-header" style="overflow: visible; min-height: 60px;">'); | |
| $('.editor-header-cell').css('position','absolute').css('top','0px').css('z-index','999').clone().appendTo('.fixed-header'); | |
| /* Tracks horizontal scrolling */ | |
| $('.ReactVirtualized__Grid').on('scroll', function(){ | |
| $('.fixed-header').offset({ left: $('.ReactVirtualized__Grid__innerScrollContainer').offset().left }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment