缩放时的元素定位 sceleY更改

This commit is contained in:
Kate Lee 2020-03-15 22:48:21 +08:00 committed by GitHub
parent afdab4a349
commit b328e48287
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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 =