Merge pull request #194 from stepancar/patch-1

minor fix for fake elem
This commit is contained in:
Zeno Rocha
2016-02-25 12:06:38 -08:00

View File

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