Details
-
Bug
-
Status: Open
-
Trivial
-
Resolution: Unresolved
-
0.9.10-incubating
-
None
-
None
-
browser
Description
If the client template is modified such that the Guacamole display does not occupy the whole browser window, the width/height values submitted as "optimal" via GUAC_WIDTH and GUAC_HEIGHT will not match the actual space available for the client display:
ManagedClient.js
// Calculate optimal width/height for display var pixel_density = $window.devicePixelRatio || 1; var optimal_dpi = pixel_density * 96; var optimal_width = $window.innerWidth * pixel_density; var optimal_height = $window.innerHeight * pixel_density; // Build base connect string var connectString = "token=" + encodeURIComponent(authenticationService.getCurrentToken()) + "&GUAC_DATA_SOURCE=" + encodeURIComponent(identifier.dataSource) + "&GUAC_ID=" + encodeURIComponent(identifier.id) + "&GUAC_TYPE=" + encodeURIComponent(identifier.type) + "&GUAC_WIDTH=" + Math.floor(optimal_width) + "&GUAC_HEIGHT=" + Math.floor(optimal_height) + "&GUAC_DPI=" + Math.floor(optimal_dpi) + (connectionParameters ? '&' + connectionParameters : '');
Attachments
Issue Links
- relates to
-
GUACAMOLE-164 Downstream modifications to client template can cause fitVisibleArea() to fail
- Open