]> git.proxmox.com Git - novnc-pve.git/blobdiff - pveui.js
use even numbers for offset to prevent strange resize with firefox
[novnc-pve.git] / 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);