Browse Source

Merge pull request #216923 in DEC/fineui from release/11.0 to feature/x

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

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

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

Loading…
Cancel
Save