GUAC-701: Fix error preventing testing on iOS.
This commit is contained in:
1 parent
39720019cd
commit
18ece342cd
1 file changed
+4
-1
@@ -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