We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f03feee commit 1fa70c3Copy full SHA for 1fa70c3
packages/core/src/Overlay.vue
@@ -66,6 +66,9 @@ export default {
66
67
x = Math.max(margin, x)
68
x = Math.min(x, window.innerWidth - floatsWidth - margin)
69
+ if (x < floatsWidth / 2) {
70
+ x = floatsWidth / 2 + margin
71
+ }
72
73
y = Math.max(margin, y)
74
y = Math.min(y, window.innerHeight - floatsHeight - margin)
0 commit comments