From e7109a08d5fed9d6a8edb2daa7d36ff17efbccb7 Mon Sep 17 00:00:00 2001 From: Olivier JARRY Date: Thu, 9 Jul 2020 00:39:21 +0200 Subject: [PATCH] bug(appendToBody): Inverted X and Y bug correction (#1221) --- src/directives/appendToBody.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);