diff --git a/vnc_lite.html b/vnc_lite.html index 2398bea2..898187a8 100644 --- a/vnc_lite.html +++ b/vnc_lite.html @@ -55,6 +55,11 @@ cursor: pointer; } + #screen { + flex: 1; /* fill remaining space */ + overflow: hidden; + } + @@ -172,7 +177,7 @@ url += '/' + path; // Creating a new RFB object will start a new connection - rfb = new RFB(document.body, url, + rfb = new RFB(document.getElementById('screen'), url, { credentials: { password: password } }); // Add listeners to important events from the RFB module @@ -192,5 +197,8 @@