Browse Source

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

* commit 'cbdc63081f113c496e24c5824ba7b0f72e55e14a':
  BI-150695 fix: 兼容当前元素无parentNode的情况
master^2^2
superman 6 months ago
parent
commit
77477f1bfd
  1. 2
      packages/fineui/src/core/controller/controller.layer.js

2
packages/fineui/src/core/controller/controller.layer.js

@ -108,7 +108,7 @@ export class LayerController extends Controller {
height: offset.height || (w.outerHeight() - (offset.top || 0) - (offset.bottom || 0)) || "",
};
const { top, left, scaleY, scaleX } = getPositionRelativeContainingBlockRect(layout.element[0].parentNode);
const { top, left, scaleY, scaleX } = getPositionRelativeContainingBlockRect(layout.element[0].parentNode || layout.element[0]);
css.top = (css.top - top) / scaleY;
css.left = (css.left - left) / scaleX;

Loading…
Cancel
Save