From 21256e9c6d36579e19791187230f754e7c8373de Mon Sep 17 00:00:00 2001 From: samhed Date: Fri, 30 Aug 2013 16:41:46 +0200 Subject: [PATCH] Small fix for deducting the correct number of pixels from the height due to the new control-bar height. --- include/ui.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/ui.js b/include/ui.js index ce7a19b3..21b4f8b9 100644 --- a/include/ui.js +++ b/include/ui.js @@ -44,10 +44,9 @@ load: function (callback) { }, onresize: function (callback) { - // Control-bar height: 44px + - // Status-bar height: 24px + - // border height: 5px = 73px to be deducted from the height - UI.rfb.setDesktopSize(window.innerWidth, window.innerHeight - 73); + // Control-bar height: 36px + + // border height: 5px = 41px to be deducted from the height + UI.rfb.setDesktopSize(window.innerWidth, window.innerHeight - 41); }, // Render default UI and initialize settings menu