GUAC-637: Fix auto-fit disable logic.
This commit is contained in:
1 parent
f66a0bad2e
commit
ed5b3cd886
1 file changed
+1
-1
@@ -789,7 +789,7 @@ GuacUI.Client.setScale = function(new_scale) {
|
|||||||
GuacUI.Client.auto_fit.checked = (new_scale === GuacUI.Client.min_zoom);
|
GuacUI.Client.auto_fit.checked = (new_scale === GuacUI.Client.min_zoom);
|
||||||
|
|
||||||
// Disable auto-fit if zoom is required
|
// Disable auto-fit if zoom is required
|
||||||
GuacUI.Client.auto_fit.disabled = (GuacUI.Client.min_zoom >= 1);
|
GuacUI.Client.auto_fit.disabled = (GuacUI.Client.min_zoom >= 1 && new_scale === GuacUI.Client.min_zoom);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user