]> git.proxmox.com Git - novnc-pve.git/commitdiff
use even numbers for offset to prevent strange resize with firefox
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 5 Aug 2014 07:42:42 +0000 (09:42 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 5 Aug 2014 07:44:38 +0000 (09:44 +0200)
pveui.js

index eefed849706d488b3b9fce3dff9e2ff93071fc24..f616a0edd2100244d725732634bffc970cb1915f 100644 (file)
--- a/pveui.js
+++ b/pveui.js
@@ -346,8 +346,8 @@ sizeUpdateTimer: undefined,
 
 updateFBSize: function(rfb, width, height) {
     try {
-       UI.lastFBWidth = width + 1;
-       UI.lastFBHeight = height + 5;
+       UI.lastFBWidth = width + 2;
+       UI.lastFBHeight = height + 6;
 
        if (UI.sizeUpdateTimer !== undefined) {
            clearInterval(UI.sizeUpdateTimer);