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 =