noVNC-control-bar doesn't exist in vnc_auto.html, check noVNC_status_bar instead
This commit is contained in:
parent
9b9ead680a
commit
9891d8ac48
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue