GUAC-1480: Clean up and document init. Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/commit/944d126c Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/944d126c Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/944d126c
Branch: refs/heads/master Commit: 944d126c422c9b460099fef7bc70908e265c52c4 Parents: 3869ca2 Author: Michael Jumper <[email protected]> Authored: Fri Feb 5 10:47:30 2016 -0800 Committer: Michael Jumper <[email protected]> Committed: Fri Feb 5 10:47:30 2016 -0800 ---------------------------------------------------------------------- .../main/webapp/app/client/services/clipboardService.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/944d126c/guacamole/src/main/webapp/app/client/services/clipboardService.js ---------------------------------------------------------------------- diff --git a/guacamole/src/main/webapp/app/client/services/clipboardService.js b/guacamole/src/main/webapp/app/client/services/clipboardService.js index c760120..71f3ec2 100644 --- a/guacamole/src/main/webapp/app/client/services/clipboardService.js +++ b/guacamole/src/main/webapp/app/client/services/clipboardService.js @@ -55,14 +55,16 @@ angular.module('client').factory('clipboardService', ['$injector', */ var lastClipboardEvent = ''; + // Ensure textarea is selectable but not visible clipElement.appendChild(clipboardContent); clipElement.style.position = 'absolute'; - clipElement.style.width = '1px'; - clipElement.style.height = '1px'; - clipElement.style.left = '-1px'; - clipElement.style.top = '-1px'; + clipElement.style.width = '1px'; + clipElement.style.height = '1px'; + clipElement.style.left = '-1px'; + clipElement.style.top = '-1px'; clipElement.style.overflow = 'hidden'; + // Add textarea to DOM document.body.appendChild(clipElement); /**
