Browse Source

Pull request #282357: BI-150395 fix: safari下拉搜索框定位不对

Merge in DEC/fineui from ~ZOEY.CHEN/fineui_:final/11.0 to final/11.0

* commit 'bbd03150300833209d7b0f6bfa2e5c4849c1dcf2':
  BI-150395 fix: safari下拉搜索框定位不对
master^2^2
Zoey.Chen-陈泽语 5 months ago
parent
commit
bcedb54782
  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)) || "", 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.top = (css.top - top) / scaleY;
css.left = (css.left - left) / scaleX; css.left = (css.left - left) / scaleX;

Loading…
Cancel
Save