From bbd03150300833209d7b0f6bfa2e5c4849c1dcf2 Mon Sep 17 00:00:00 2001 From: chenzeyu Date: Mon, 17 Jun 2024 19:30:39 +0800 Subject: [PATCH] =?UTF-8?q?BI-150395=20fix:=20safari=E4=B8=8B=E6=8B=89?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E6=A1=86=E5=AE=9A=E4=BD=8D=E4=B8=8D=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/src/core/controller/controller.layer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/fineui/src/core/controller/controller.layer.js b/packages/fineui/src/core/controller/controller.layer.js index 9dcac7f83..bacc5f60c 100644 --- a/packages/fineui/src/core/controller/controller.layer.js +++ b/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;