You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getParentRect() {
// subtract the popup parent borders, because popupParent.getBoundingClientRect
// returns the rect outside the borders, but the 0,0 coordinate for absolute
// positioning is inside the border, leading the popup to be off by the width
// of the border
const eDocument = this.gridOptionsService.getDocument();
let popupParent = this.getPopupParent();
if (popupParent === eDocument.body) {
popupParent = eDocument.documentElement;
}
else if (getComputedStyle(popupParent).position === 'static') {
popupParent = popupParent.offsetParent;
}
return getElementRectWithOffset(popupParent);
}
问题描述
eDocument的documentElement指向了父应用的根元素
复现步骤
1.在子应用中home页面中onGridReady事件中将params.api.setPopupParent(body);
2.鼠标悬停在grid的第一列第一行等待tooltip出现
上传截图
复现仓库
环境信息
The text was updated successfully, but these errors were encountered: