Commit 6ea8bece authored by Joel Martin's avatar Joel Martin

Fix setBarPosotion runtime errors.

parent 01a9eee9
...@@ -72,7 +72,7 @@ html { ...@@ -72,7 +72,7 @@ html {
display: none; display: none;
} }
.noVNC_mobile_buttons_right { #noVNC_buttons_right {
position:fixed; position:fixed;
padding-right:10px; padding-right:10px;
padding-top:9px; padding-top:9px;
......
...@@ -374,7 +374,7 @@ connect: function() { ...@@ -374,7 +374,7 @@ connect: function() {
UI.rfb.connect(host, port, password); UI.rfb.connect(host, port, password);
//Close dialog. //Close dialog.
setTimeout("setBarPosition()",100); setTimeout(UI.setBarPosition, 100);
$D('noVNC_defaultScreen').style.display = "none"; $D('noVNC_defaultScreen').style.display = "none";
}, },
...@@ -497,9 +497,9 @@ addOption: function(selectbox,text,value ) ...@@ -497,9 +497,9 @@ addOption: function(selectbox,text,value )
setBarPosition: function() { setBarPosition: function() {
$D('noVNC-control-bar').style.top = (window.pageYOffset) + 'px'; $D('noVNC-control-bar').style.top = (window.pageYOffset) + 'px';
$D('noVNC_mobile_buttons').style.left = (window.pageXOffset) + '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'; $D('noVNC-control-bar').style.width = vncwidth + 'px';
}, },
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
</div> </div>
<!--noVNC Buttons--> <!--noVNC Buttons-->
<div class="noVNC_mobile_buttons_right"> <div id="noVNC_buttons_right">
<input type="button" class="noVNC_status_button" <input type="button" class="noVNC_status_button"
style="float:left;" value="CtrlAltDel" id="sendCtrlAltDelButton" style="float:left;" value="CtrlAltDel" id="sendCtrlAltDelButton"
onclick="UI.sendCtrlAltDel();"> onclick="UI.sendCtrlAltDel();">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment