Closed
Description
I have a table that can get very wide, dozens of columns and around 4000px wide, and am seeing issues.
- Many column headers are never visible, due to the way the width of the generated floatThead-container div is calculated and the use of overlay: hidden.
- Scrolling horizontally (by dragging the scrollbar, for example) often doesn't move the headers, scrolling vertically triggers that.
An additional issue, not with the header but the content, is that the rightmost content column is cutoff by the vertical scrollbar--that is, the rightmost 15px or so are overwritten by the scrollbar. On a Mac you may need to go into System Prefs | General and change the Show scrollbars setting to Always show in order to see this.
I've done minimal configuration, as shown here:
var $table = $('.aggregate-records-table-view').find('> table');
if ($table) {
$table.css('table-layout', 'fixed');
var scrollTop = $('#aggregate-records-viewer').offset().top;
$table.floatThead({
scrollingTop: scrollTop,
scrollContainer: function() { return $('#aggregate-records-viewer'); },
useAbsolutePositioning: false,
cellTag: 'td'
});
}
Metadata
Metadata
Assignees
Labels
No labels