Merge pull request #492 from Kate605690919/patch-1

缩放时的元素定位 sceleY更改
This commit is contained in:
liaoxuezhi 2020-03-16 09:48:13 +08:00 committed by GitHub
commit f744ae1173

View File

@ -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 =