mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
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:
@@ -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>');
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user