Skip to content

Commit

Permalink
noVNC-control-bar doesn't exist in vnc_auto.html, check noVNC_status_…
Browse files Browse the repository at this point in the history
…bar instead
  • Loading branch information
samhed committed Jan 23, 2015
1 parent 9b9ead6 commit 9891d8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vnc_auto.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
function UIresize() {
var innerWidth = window.innerWidth;
var innerHeight = window.innerHeight;
var controlBarHeight = $D('noVNC-control-bar').scrollHeight;
var controlBarHeight = $D('noVNC_status_bar').scrollHeight;
var borderHeight = 5;
if (innerWidth !== undefined && innerHeight !== undefined)
rfb.setDesktopSize(innerWidth, innerHeight - controlBarHeight - borderHeight);
Expand Down

0 comments on commit 9891d8a

Please sign in to comment.