From c8e7b5f3283461e6e24187fd17c22a08e44b171e Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Fri, 21 Nov 2014 16:23:30 -0800 Subject: [PATCH] GUAC-865: Just send actual dimensions as the optimal size. Do not force 600x600. --- guacamole/src/main/webapp/scripts/client-ui.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/guacamole/src/main/webapp/scripts/client-ui.js b/guacamole/src/main/webapp/scripts/client-ui.js index 78649c582..30b06b6f7 100644 --- a/guacamole/src/main/webapp/scripts/client-ui.js +++ b/guacamole/src/main/webapp/scripts/client-ui.js @@ -1171,13 +1171,6 @@ GuacUI.Client.connect = function() { var optimal_width = window.innerWidth * pixel_density; var optimal_height = window.innerHeight * pixel_density; - // Scale width/height to be at least 600x600 - if (optimal_width < 600 || optimal_height < 600) { - var scale = Math.max(600 / optimal_width, 600 / optimal_height); - optimal_width = optimal_width * scale; - optimal_height = optimal_height * scale; - } - // Get entire query string, and pass to connect(). // Normally, only the "id" parameter is required, but // all parameters should be preserved and passed on for