From b328e482878107d50b1b6241ce3b677f526b1079 Mon Sep 17 00:00:00 2001 From: Kate Lee <229026@whut.edu.cn> Date: Sun, 15 Mar 2020 22:48:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=A9=E6=94=BE=E6=97=B6=E7=9A=84=E5=85=83?= =?UTF-8?q?=E7=B4=A0=E5=AE=9A=E4=BD=8D=20sceleY=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/dom.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/dom.tsx b/src/utils/dom.tsx index 6049a398..7d5bc893 100644 --- a/src/utils/dom.tsx +++ b/src/utils/dom.tsx @@ -151,7 +151,7 @@ export function calculatePosition( const {height: overlayHeight, width: overlayWidth} = getOffset(overlayNode); const clip = overlayNode.getBoundingClientRect(); const scaleX = clip.width / overlayNode.offsetWidth; - const scaleY = clip.width / overlayNode.offsetWidth; + const scaleY = clip.height / overlayNode.offsetHeight; // auto 尝试四个方向对齐。 placement =