GUAC-898: Send new display size to Guacamole when window size changes.

This commit is contained in:
Michael Jumper
2014-12-05 13:56:20 -08:00
parent ee0788258b
commit 9024a1f802

View File

@@ -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);
});
/*