This commit is contained in:
西瓜°
2026-02-17 17:56:15 +08:00
parent f81d25cc4d
commit 4d6f54e9eb
6 changed files with 23 additions and 25 deletions
@@ -82,11 +82,10 @@ export default defineComponent({
function onResize() {
if (triggerRef.value) {
const { width, height, left, top } = triggerRef.value.getBoundingClientRect()
const zoom = parseFloat(getComputedStyle(document.body).zoom) || 1
dropdownPosition.value = {
w: width / zoom,
x: left / zoom - 2,
y: (top + height + 2) / zoom,
w: width,
x: left - 2,
y: (top + height + 2),
}
}
}