diff --git a/src/clipboard-action.js b/src/clipboard-action.js index e33a677..90300a6 100644 --- a/src/clipboard-action.js +++ b/src/clipboard-action.js @@ -59,7 +59,7 @@ class ClipboardAction { this.fakeElem.style.padding = '0'; this.fakeElem.style.margin = '0'; // Move element out of screen horizontally - this.fakeElem.style.position = 'fixed'; + this.fakeElem.style.position = 'absolute'; this.fakeElem.style[ isRTL ? 'right' : 'left' ] = '-9999px'; // Move element to the same position vertically this.fakeElem.style.top = (window.pageYOffset || document.documentElement.scrollTop) + 'px';