2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-19 09:50:33 +03:00

bug(appendToBody): Inverted X and Y bug correction (#1221)

This commit is contained in:
Olivier JARRY
2020-07-09 00:39:21 +02:00
committed by GitHub
parent 9e4955e96a
commit e7109a08d5
+2 -2
View File
@@ -6,8 +6,8 @@ export default {
let scrollY = window.scrollY || window.pageYOffset; let scrollY = window.scrollY || window.pageYOffset;
el.unbindPosition = context.calculatePosition(el, context, { el.unbindPosition = context.calculatePosition(el, context, {
width: width + 'px', width: width + 'px',
top: (scrollX + top + height) + 'px', top: (scrollY + top + height) + 'px',
left: (scrollY + left) + 'px', left: (scrollX + left) + 'px',
}); });
document.body.appendChild(el); document.body.appendChild(el);