]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Update all state on session size change
authorPierre Ossman <ossman@cendio.se>
Thu, 24 Nov 2016 11:36:15 +0000 (12:36 +0100)
committerPierre Ossman <ossman@cendio.se>
Fri, 9 Dec 2016 08:20:50 +0000 (09:20 +0100)
app/ui.js

index b78207e8130e57ff1f7d367efee8d97a37283842..e5b6f560324f4b4aa9aae44b6890acb72f855938 100644 (file)
--- a/app/ui.js
+++ b/app/ui.js
@@ -343,7 +343,7 @@ var UI;
                                   'onClipboard': UI.clipboardReceive,
                                   'onBell': UI.bell,
                                   'onFBUComplete': UI.initialResize,
-                                  'onFBResize': UI.updateViewDrag,
+                                  'onFBResize': UI.updateSessionSize,
                                   'onDesktopName': UI.updateDesktopName});
                 return true;
             } catch (exc) {
@@ -1576,6 +1576,11 @@ var UI;
             }
         },
 
+        updateSessionSize: function(rfb, width, height) {
+            UI.updateViewClip();
+            UI.updateViewDrag();
+        },
+
         updateDesktopName: function(rfb, name) {
             UI.desktopName = name;
             // Display the desktop name in the document title