mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°2618 - Fix missing scroll bar in DataModel Viewer for class with large number of attributs
This commit is contained in:
@@ -3469,7 +3469,9 @@ table.listResults .originColor{
|
||||
|
||||
#dataModelSplitPane .ui-layout-center{
|
||||
margin-left :30px !important;
|
||||
height: auto !important;
|
||||
height: initial !important;
|
||||
width: auto !important;
|
||||
width: initial !important;
|
||||
}
|
||||
///////////////////
|
||||
|
||||
@@ -969,6 +969,30 @@ EOF
|
||||
);
|
||||
|
||||
}
|
||||
//for IE and edge
|
||||
$oPage->add_ready_script(
|
||||
<<<EOF
|
||||
var parentwidth = $(".ui-layout-center.data-model-viewer").width();
|
||||
$("#dataModelScrollableDiv").width(parentwidth);
|
||||
|
||||
$(window).resize(function() {
|
||||
clearTimeout(window.resizedFinished);
|
||||
window.resizedFinished = setTimeout(function(){
|
||||
var parentwidth = $(".ui-layout-center.data-model-viewer").width();
|
||||
$("#dataModelScrollableDiv").width(parentwidth);
|
||||
}, 250);
|
||||
});
|
||||
/* $(".ui-layout-center.data-model-viewer").on('resize', function() {
|
||||
var parentwidth = $(".ui-layout-center.data-model-viewer").width();
|
||||
$("#dataModelScrollableDiv").width(parentwidth);
|
||||
}).trigger('resize');
|
||||
}
|
||||
/*$(window).on('resize', function() {
|
||||
var parentwidth = $(".ui-layout-center.data-model-viewer").width();
|
||||
$("#dataModelScrollableDiv").width(parentwidth);
|
||||
});*/
|
||||
EOF
|
||||
);
|
||||
|
||||
$oPage->SetCurrentTab('UI:Schema:Attributes');
|
||||
$aConfig = array(
|
||||
|
||||
Reference in New Issue
Block a user