[Spice-commits] resize.js

Jeremy White jwhite at kemper.freedesktop.org
Fri Jun 2 14:46:19 UTC 2017


 resize.js |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 556ed82aa4f5077a12bd46500d7077d4ddbe9c13
Author: Tomáš Bohdálek <tom.bohdalek at gmail.com>
Date:   Wed May 24 08:57:41 2017 +0200

    Always show debug console
    
    Make sure to show both screen and console.

diff --git a/resize.js b/resize.js
index f5410d3..b572de7 100644
--- a/resize.js
+++ b/resize.js
@@ -33,17 +33,17 @@
 function resize_helper(sc)
 {
     var w = document.getElementById(sc.screen_id).clientWidth;
-    var h = document.getElementById(sc.screen_id).clientHeight;
-
     var m = document.getElementById(sc.message_id);
 
     /* Resize vertically; basically we leave a 20 pixel margin
          at the bottom, and use the position of the message window
          to figure out how to resize */
-    var hd = window.innerHeight - m.offsetHeight - m.offsetTop - 20;
+
+    /* Show both div elements - spice-area and message-div */
+    var h = window.innerHeight - m.offsetHeight - m.clientHeight - 20;
+
 
     /* Xorg requires height be a multiple of 8; round up */
-    h = h + hd;
     if (h % 8 > 0)
         h += (8 - (h % 8));
 


More information about the Spice-commits mailing list