* Fix table height.

This commit is contained in:
qixinzhi
2023-11-29 13:04:04 +08:00
parent c45268f473
commit 5ae89bf89f
3 changed files with 7 additions and 0 deletions
+5
View File
@@ -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,
+1
View File
@@ -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,