Fix fake element position from "fixed" to "absolute" #194 #250

This commit is contained in:
Zeno Rocha 2016-06-08 21:44:23 -07:00
parent 79c3361ca4
commit 294e9fcb5d
No known key found for this signature in database
GPG Key ID: 7BEB4BBA4108C63F

View File

@ -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';