diff --git a/include/base.css b/include/base.css index db5d4f48..9c227b06 100644 --- a/include/base.css +++ b/include/base.css @@ -72,7 +72,7 @@ html { display: none; } -.noVNC_mobile_buttons_right { +#noVNC_buttons_right { position:fixed; padding-right:10px; padding-top:9px; diff --git a/include/ui.js b/include/ui.js index 37ca533c..102f547d 100644 --- a/include/ui.js +++ b/include/ui.js @@ -374,7 +374,7 @@ connect: function() { UI.rfb.connect(host, port, password); //Close dialog. - setTimeout("setBarPosition()",100); + setTimeout(UI.setBarPosition, 100); $D('noVNC_defaultScreen').style.display = "none"; }, @@ -497,9 +497,9 @@ addOption: function(selectbox,text,value ) setBarPosition: function() { $D('noVNC-control-bar').style.top = (window.pageYOffset) + 'px'; $D('noVNC_mobile_buttons').style.left = (window.pageXOffset) + 'px'; - $D('noVNC_mobile_buttons_right').style.right = 0 + 'px'; + $D('noVNC_buttons_right').style.right = 0 + 'px'; - var vncwidth = $('#noVNC_screen').width(); + var vncwidth = $D('noVNC_screen').style.offsetWidth; $D('noVNC-control-bar').style.width = vncwidth + 'px'; }, diff --git a/vnc.html b/vnc.html index d5702b56..e5956d10 100644 --- a/vnc.html +++ b/vnc.html @@ -68,7 +68,7 @@ -
+