From 8b46c0deb027f06b9db0601d518d1b1490ece66c Mon Sep 17 00:00:00 2001 From: Solly Ross Date: Tue, 17 Feb 2015 18:53:38 -0500 Subject: [PATCH] Update UI to allow for different scaling modes This commit updates the UI to allow for different scaling modes. The "resize" option was changed to be a dropdown with the following options: "None" (nothing), "Remote Resizing" (SetDesktopSize). --- include/ui.js | 4 ++-- vnc.html | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/include/ui.js b/include/ui.js index e923ea8c..57e630bd 100644 --- a/include/ui.js +++ b/include/ui.js @@ -46,7 +46,7 @@ var UI; }, onresize: function (callback) { - if (UI.getSetting('resize')) { + if (UI.getSetting('resize') === 'remote') { var innerW = window.innerWidth; var innerH = window.innerHeight; var controlbarH = $D('noVNC-control-bar').offsetHeight; @@ -104,7 +104,7 @@ var UI; UI.initSetting('encrypt', (window.location.protocol === "https:")); UI.initSetting('true_color', true); UI.initSetting('cursor', !UI.isTouchDevice); - UI.initSetting('resize', false); + UI.initSetting('resize', 'off'); UI.initSetting('shared', true); UI.initSetting('view_only', false); UI.initSetting('path', 'websockify'); diff --git a/vnc.html b/vnc.html index 7cc07cf9..1d1abaaf 100644 --- a/vnc.html +++ b/vnc.html @@ -157,10 +157,16 @@
  • True Color
  • Local Cursor
  • Clip to Window
  • -
  • Resize Remote to Window
  • Shared Mode
  • View Only
  • +
  • Path
  • +
  • +
  • Repeater ID