List: Remove vertical scrolling for all lists except dashlets

This commit is contained in:
Molkobain
2021-05-21 17:03:59 +02:00
parent a36632def6
commit 104cf9479c
9 changed files with 30 additions and 61 deletions

View File

@@ -386,6 +386,11 @@ class DataTableUIBlockFactory extends AbstractUIBlockFactory
$aOptions['iPageSize'] = $oCustomSettings->iDefaultPageSize;
}
// Max height is only set if necessary, otherwise we want the list to occupy all the height it can depending on its pagination
if (isset($aExtraParams['max_height'])) {
$aOptions['sMaxHeight'] = $aExtraParams['max_height'];
}
$aOptions['processing'] = true;
$aOptions['sTableId'] = $sTableId;
$aOptions['bUseCustomSettings'] = $bUseCustomSettings;
@@ -619,6 +624,11 @@ class DataTableUIBlockFactory extends AbstractUIBlockFactory
$aOptions['iPageSize'] = $oCustomSettings->iDefaultPageSize;
}
// Max height is only set if necessary, otherwise we want the list to occupy all the height it can depending on its pagination
if (isset($aExtraParams['max_height'])) {
$aOptions['sMaxHeight'] = $aExtraParams['max_height'];
}
$aOptions['sTableId'] = $sTableId;
$aOptions['bUseCustomSettings'] = $bUseCustomSettings;
$aOptions['bViewLink'] = $bViewLink;