noVNC-control-bar doesn't exist in vnc_auto.html, check noVNC_status_bar instead

This commit is contained in:
samhed 2015-01-23 19:59:59 +01:00
parent 9b9ead680a
commit 9891d8ac48
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@
function UIresize() { function UIresize() {
var innerWidth = window.innerWidth; var innerWidth = window.innerWidth;
var innerHeight = window.innerHeight; var innerHeight = window.innerHeight;
var controlBarHeight = $D('noVNC-control-bar').scrollHeight; var controlBarHeight = $D('noVNC_status_bar').scrollHeight;
var borderHeight = 5; var borderHeight = 5;
if (innerWidth !== undefined && innerHeight !== undefined) if (innerWidth !== undefined && innerHeight !== undefined)
rfb.setDesktopSize(innerWidth, innerHeight - controlBarHeight - borderHeight); rfb.setDesktopSize(innerWidth, innerHeight - controlBarHeight - borderHeight);