GUACAMOLE-55: Clipboard element must be "position: fixed" to avoid unnecessary scrolling of the document.

This commit is contained in:
Michael Jumper
2016-06-22 00:42:31 -07:00
parent 0edc730308
commit 0c6383a082

View File

@@ -45,7 +45,7 @@ angular.module('client').factory('clipboardService', ['$injector',
// Ensure textarea is selectable but not visible // Ensure textarea is selectable but not visible
clipElement.appendChild(clipboardContent); clipElement.appendChild(clipboardContent);
clipElement.style.position = 'absolute'; clipElement.style.position = 'fixed';
clipElement.style.width = '1px'; clipElement.style.width = '1px';
clipElement.style.height = '1px'; clipElement.style.height = '1px';
clipElement.style.left = '-1px'; clipElement.style.left = '-1px';