mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
Buffers should be resizable, too.
This commit is contained in:
@@ -439,26 +439,21 @@ Guacamole.Client = function(tunnel) {
|
|||||||
var width = parseInt(parameters[1]);
|
var width = parseInt(parameters[1]);
|
||||||
var height = parseInt(parameters[2]);
|
var height = parseInt(parameters[2]);
|
||||||
|
|
||||||
// Only valid for layers (buffers auto-resize)
|
// Resize layer
|
||||||
if (layer_index >= 0) {
|
var layer_container = getLayerContainer(layer_index);
|
||||||
|
layer_container.resize(width, height);
|
||||||
|
|
||||||
// Resize layer
|
// If layer is default, resize display
|
||||||
var layer_container = getLayerContainer(layer_index);
|
if (layer_index == 0) {
|
||||||
layer_container.resize(width, height);
|
|
||||||
|
|
||||||
// If layer is default, resize display
|
displayWidth = width;
|
||||||
if (layer_index == 0) {
|
displayHeight = height;
|
||||||
|
|
||||||
displayWidth = width;
|
// Update (set) display size
|
||||||
displayHeight = height;
|
display.style.width = displayWidth + "px";
|
||||||
|
display.style.height = displayHeight + "px";
|
||||||
|
|
||||||
// Update (set) display size
|
}
|
||||||
display.style.width = displayWidth + "px";
|
|
||||||
display.style.height = displayHeight + "px";
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
} // end if layer (not buffer)
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user