mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
Resets invisible textarea's paddings and margins #179
This commit is contained in:
parent
bd6dc9eb9f
commit
4c9e29a0dc
@ -58,6 +58,8 @@ export default class ClipboardAction {
|
||||
this.fakeHandler = document.body.addEventListener('click', () => this.removeFake());
|
||||
|
||||
this.fakeElem = document.createElement('textarea');
|
||||
this.fakeElem.style.padding = '0';
|
||||
this.fakeElem.style.margin = '0';
|
||||
this.fakeElem.style.position = 'absolute';
|
||||
this.fakeElem.style.fontSize = '12pt'; // Prevent zooming on iPhones.
|
||||
this.fakeElem.style[ isRTL ? 'right' : 'left' ] = '-9999px';
|
||||
|
Loading…
Reference in New Issue
Block a user