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