mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 05:18:34 +08:00
commit
f744ae1173
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user