mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-22 10:30:34 +03:00
fix(appendToBody): Inverted X and Y bug correction (#1221)
This commit is contained in:
@@ -6,10 +6,10 @@ 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: (scrollY + top + height) + 'px',
|
|
||||||
left: (scrollX + left) + 'px',
|
left: (scrollX + left) + 'px',
|
||||||
|
top: (scrollY + top + height) + 'px',
|
||||||
});
|
});
|
||||||
|
|
||||||
document.body.appendChild(el);
|
document.body.appendChild(el);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user