mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-898: Send new display size to Guacamole when window size changes.
This commit is contained in:
@@ -427,7 +427,15 @@ angular.module('client').directive('guacClient', [function guacClient() {
|
||||
|
||||
// If the window is resized, attempt to resize client
|
||||
$window.addEventListener('resize', function onResizeWindow() {
|
||||
|
||||
// Send new display size, if changed
|
||||
if (client && display) {
|
||||
if (display.getWidth() !== main.offsetWidth || display.getHeight() !== main.offsetHeight)
|
||||
client.sendSize(main.offsetWidth, main.offsetHeight);
|
||||
}
|
||||
|
||||
$scope.safeApply(updateDisplayScale);
|
||||
|
||||
});
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user