fix(FloatingBubble): fix wrong value of boundary (#12067)

This commit is contained in:
inottn 2023-07-08 17:00:48 +08:00 committed by GitHub
parent 186a3f95c4
commit 6a544b4449
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,8 +83,8 @@ export default defineComponent({
const boundary = computed<FloatingBubbleBoundary>(() => ({
top: props.gap,
right: windowWidth.value - state.value.height - props.gap,
bottom: windowHeight.value - state.value.width - props.gap,
right: windowWidth.value - state.value.width - props.gap,
bottom: windowHeight.value - state.value.height - props.gap,
left: props.gap,
}));