GUAC-1480: Do not rely on 0x0 clipping - it causes window.getSelection().toString() to return nothing. Things need to be at least 1x1 for selection to work reliably.

This commit is contained in:
Michael Jumper
2016-02-03 16:54:25 -08:00
parent ca20d6a17d
commit 8740d365eb

View File

@@ -57,8 +57,10 @@ angular.module('client').factory('clipboardService', ['$injector',
clipElement.appendChild(clipboardContent);
clipElement.style.position = 'absolute';
clipElement.style.width = '0px';
clipElement.style.height = '0px';
clipElement.style.width = '1px';
clipElement.style.height = '1px';
clipElement.style.left = '-1px';
clipElement.style.top = '-1px';
clipElement.style.overflow = 'hidden';
document.body.appendChild(clipElement);