N°3911 Fix datamodel viewer table overflowing in some case

This commit is contained in:
Stephen Abello
2021-10-26 10:10:01 +02:00
parent b7e8c0de8a
commit dd486dd015
2 changed files with 5 additions and 9 deletions

View File

@@ -986,9 +986,12 @@ function DisplayClassDetails($oPage, $sClass, $sContext)
'moreinfo' => array('label' => Dict::S('UI:Schema:MoreInfo'), 'description' => Dict::S('UI:Schema:MoreInfo+')),
'origin' => array('label' => Dict::S('UI:Schema:Origin'), 'description' => Dict::S('UI:Schema:Origin+')),
);
$oTablePanel = PanelUIBlockFactory::MakeForClass($sClass, '');
$oTablePanel->AddCSSClass('ibo-datatable-panel');
$oAttributesTable = DataTableUIBlockFactory::MakeForStaticData('', $aConfig, $aDetails, 'ibo-datamodel-viewer--attributes-table', [], "", array('pageLength' => -1));
$oPage->AddUiBlock($oAttributesTable);
$oTablePanel->AddSubBlock($oAttributesTable);
$oPage->AddUiBlock($oTablePanel);
$sOrigins = json_encode(array_keys($aOrigins));
//color calculation in order to keep 1 color for 1 extended class. Colors are interpolated and will be used for