Browse Source

Pull request #216917: REPORT-88341 fix: 【专题】【智能运维-平台日志】用户行为-操作用户和模板热度-被访问资源,在ie浏览器下无法点击

Merge in DEC/fineui from ~DAILER/fineui-decision:final/11.0 to final/11.0

* commit 'f35ca9a1aae7d8b4e218b1ff1b38ddab1eecbb01':
  REPORT-88341 fix: 【专题】【智能运维-平台日志】用户行为-操作用户和模板热度-被访问资源,在ie浏览器下无法点击
research/test
Dailer-刘荣歆 2 years ago
parent
commit
6c2deab384
  1. 11
      src/core/platform/web/dom.js

11
src/core/platform/web/dom.js

@ -745,13 +745,14 @@
* 获取position:fixed相对定位的元素的clientRect * 获取position:fixed相对定位的元素的clientRect
*/ */
getPositionRelativeContainingBlockRect: function (element) { getPositionRelativeContainingBlockRect: function (element) {
var positionRelativeElement = BI.DOM.getPositionRelativeContainingBlock(element); const positionRelativeElement = BI.DOM.getPositionRelativeContainingBlock(element);
var rect = positionRelativeElement.getBoundingClientRect(); const { top, right, bottom, left, width, height, x, y } = positionRelativeElement.getBoundingClientRect();
return { return {
...rect.toJSON(), top, right, bottom, left, width, height, x, y,
scaleX: rect.width / positionRelativeElement.offsetWidth, scaleX: width / positionRelativeElement.offsetWidth,
scaleY: rect.height / positionRelativeElement.offsetHeight scaleY: height / positionRelativeElement.offsetHeight,
}; };
}, },
}); });

Loading…
Cancel
Save