diff --git a/src/directives/appendToBody.js b/src/directives/appendToBody.js index 8867e99..fb441c6 100644 --- a/src/directives/appendToBody.js +++ b/src/directives/appendToBody.js @@ -6,8 +6,8 @@ export default { let scrollY = window.scrollY || window.pageYOffset; el.unbindPosition = context.calculatePosition(el, context, { width: width + 'px', - top: (scrollX + top + height) + 'px', - left: (scrollY + left) + 'px', + top: (scrollY + top + height) + 'px', + left: (scrollX + left) + 'px', }); document.body.appendChild(el);