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

@@ -914,6 +914,7 @@ class DashletObjectList extends Dashlet
'menu' => $sShowMenu,
'table_id' => self::APPUSERPREFERENCES_PREFIX.$this->sId,
'surround_with_panel' => false,
'max_height' => '500px',
);
$sBlockId = 'block_'.$this->sId.($bEditMode ? '_edit' : ''); // make a unique id (edition occurring in the same DOM)
$oBlock->DisplayIntoContentBlock($oPanel, $oPage, $sBlockId, array_merge($aExtraParams, $aParams));

View File

@@ -169,6 +169,8 @@ class DisplayBlock
/** bool add toolkit menu */
'selectionMode',
/**positive or negative*/
'max_height',
/** string Max. height of the list, if not specified will occupy all the available height no matter the pagination */
], DataTableUIBlockFactory::GetAllowedParams()),
'list_search' => array_merge([
'update_history',

View File

@@ -337,7 +337,7 @@ class UILinksWidgetDirect
$oPage->add(<<<HTML
<form id="ObjectsAddForm_{$this->sInputid}">
<div id="SearchResultsToAdd_{$this->sInputid}" style="vertical-align:top;background: #fff;height:100%;overflow:auto;padding:0;border:0;">
<div id="SearchResultsToAdd_{$this->sInputid}">
<div style="background: #fff; border:0; text-align:center; vertical-align:middle;"><p>{$sEmptyList}</p></div>
</div>
<input type="hidden" id="count_{$this->sInputid}" value="0"/>