mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 05:31:22 +00:00
GUAC-701: Fix error preventing testing on iOS.
This commit is contained in:
@@ -812,8 +812,11 @@ GuacUI.Client.setScale = function(new_scale) {
|
|||||||
*/
|
*/
|
||||||
GuacUI.Client.updateDisplayScale = function() {
|
GuacUI.Client.updateDisplayScale = function() {
|
||||||
|
|
||||||
// Determine whether display is currently fit to the screen
|
|
||||||
var guac = GuacUI.Client.attachedClient;
|
var guac = GuacUI.Client.attachedClient;
|
||||||
|
if (!guac)
|
||||||
|
return;
|
||||||
|
|
||||||
|
// Determine whether display is currently fit to the screen
|
||||||
var auto_fit = (guac.getDisplay().getScale() === GuacUI.Client.min_zoom);
|
var auto_fit = (guac.getDisplay().getScale() === GuacUI.Client.min_zoom);
|
||||||
|
|
||||||
// Calculate scale to fit screen
|
// Calculate scale to fit screen
|
||||||
|
Reference in New Issue
Block a user