N°2618 DataModel viewer : fix no vertical scrollbar in MSIE

The scrollbar is present on the right side but after viewport limit so not visible !
Can't change div.ui-layout-pane.ui-layout-center width as it is calculated dynamically by JS Layout...
So added another container with a margin. The CSS rules are added to MSIE only using the media query tip :/
This commit is contained in:
Pierre Goiffon
2020-01-16 16:40:36 +01:00
parent 0d9dc34a08
commit 8a666b09d6

View File

@@ -797,6 +797,8 @@ JS
}
}
/**
* Display the details of a given class of objects
*
@@ -808,6 +810,19 @@ JS
*/
function DisplayClassDetails($oPage, $sClass, $sContext)
{
$oPage->add('<div id="classDetailContainer">'); // MSIE compat (N°2618)
$oPage->add_style(<<<CSS
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
#classDetailContainer
{
overflow-y: scroll;
height: 100%;
margin-right: 30px;
}
}
CSS
);
DisplayClassHeader($oPage, $sClass);
$aParentClasses = array();
foreach (MetaModel::EnumParentClasses($sClass) as $sParentClass)
@@ -1014,6 +1029,8 @@ EOF
$oPage->SetCurrentTab();
$oPage->SetCurrentTabContainer();
$oPage->add('</div>');
}