* Fix table height.
This commit is contained in:
@@ -647,6 +647,11 @@ window.messagerWarning = function(message)
|
||||
});
|
||||
}
|
||||
|
||||
window.getTableHeight = function(actual)
|
||||
{
|
||||
return $('.table-side').height();
|
||||
}
|
||||
|
||||
window.setMultiTableHeight = function(contentHeight)
|
||||
{
|
||||
$('.table-and-charts').css('max-height', 'calc(100% - ' + contentHeight + 'px)');
|
||||
|
||||
@@ -24,6 +24,7 @@ div
|
||||
(
|
||||
$viewType == 'multiple' ? set::height(310) : null,
|
||||
set::bordered(true),
|
||||
set::height(jsRaw('window.getTableHeight')),
|
||||
set::cols($groupHeader),
|
||||
set::data(array_values($groupData)),
|
||||
($metricRecordType == 'scope' || $metricRecordType == 'scope-date') ? set::footPager(usePager('dtablePager')) : null,
|
||||
|
||||
@@ -360,6 +360,7 @@ div
|
||||
$groupData ? dtable
|
||||
(
|
||||
set::bordered(true),
|
||||
set::height(jsRaw('window.getTableHeight')),
|
||||
set::cols($groupHeader),
|
||||
set::data(array_values($groupData)),
|
||||
($metricRecordType == 'scope' || $metricRecordType == 'scope-date') ? set::footPager(usePager('dtablePager')) : null,
|
||||
|
||||
Reference in New Issue
Block a user