mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°7402 - Fix JS error when trying to add two or more items on an indirect linkset when updating the source object
This commit is contained in:
@@ -1314,7 +1314,7 @@ $(function()
|
||||
if(this._isElementSticking(oFormPanelBodyElem)) {
|
||||
const oFormPanelElem = this._getFormPanelElem();
|
||||
oFormPanelBodyElem.css({
|
||||
'top': $(this.options.viewport_elem).offset().top,
|
||||
'top': $(this.options.viewport_elem).offset()?.top, // N°7402 - In case viewport is the document, offset() will return undefined
|
||||
'left': oFormPanelElem.offset().left,
|
||||
'width': oFormPanelElem.outerWidth(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user