mirror of
https://github.com/apache/superset.git
synced 2026-04-20 16:44:46 +00:00
Make the headers of tables and pivot tables fixed (#651)
This commit is contained in:
committed by
Maxime Beauchemin
parent
8ebe074954
commit
ab71ee4f93
@@ -96,8 +96,18 @@ var toggleCheckbox = function (apiUrlPrefix, selector) {
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Fix the height of the table body of a DataTable with scrollY set
|
||||
*/
|
||||
var fixDataTableBodyHeight = function ($tableDom, height) {
|
||||
var headHeight = $tableDom.find('.dataTables_scrollHead').height();
|
||||
$tableDom.find('.dataTables_scrollBody')
|
||||
.css('max-height', height - headHeight);
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
wrapSvgText: wrapSvgText,
|
||||
showModal: showModal,
|
||||
toggleCheckbox: toggleCheckbox
|
||||
toggleCheckbox: toggleCheckbox,
|
||||
fixDataTableBodyHeight: fixDataTableBodyHeight
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user