From 294e9fcb5d80c3966d18bae635cbcccfe9cd8664 Mon Sep 17 00:00:00 2001 From: Zeno Rocha Date: Wed, 8 Jun 2016 21:44:23 -0700 Subject: [PATCH] Fix fake element position from "fixed" to "absolute" #194 #250 --- src/clipboard-action.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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';