N°2618 - Fix missing scroll bar in DataModel Viewer for class with large number of attributs

This commit is contained in:
acognet
2020-01-23 18:24:14 +01:00
parent cc4e1ea104
commit bfcb1fdb30
2 changed files with 26 additions and 0 deletions

View File

@@ -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(