Browse Source

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

* commit '736980cb6ef2267d72d7a1550eb35e1a0d160a3a':
  BI-150395 fix: safari下拉搜索框定位不对
master^2^2
superman 6 months ago
parent
commit
3063da4874
  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]);
const { top, left, scaleY, scaleX } = getPositionRelativeContainingBlockRect(layout.element[0].parentNode);
css.top = (css.top - top) / scaleY;
css.left = (css.left - left) / scaleX;

Loading…
Cancel
Save