mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
N°7257 - Check and migrate old Combodo JS functions
This commit is contained in:
@@ -308,7 +308,9 @@ CombodoModal._BindEvents = function (oModalElem) {
|
||||
// Center modal on resize
|
||||
if(window.ResizeObserver) {
|
||||
const oModalObs = new ResizeObserver(function(){
|
||||
me._CenterModalInViewport(oModalElem);
|
||||
if(oModalElem.width()>0) {
|
||||
me._CenterModalInViewport(oModalElem);
|
||||
}
|
||||
});
|
||||
oModalObs.observe(oModalElem[0]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user