5
0
mirror of git://git.proxmox.com/git/novnc-pve.git synced 2025-01-03 05:17:56 +03:00

request size with vncshell and container console

when opening the console*tab* on a host or a container,
give the current size to the vncproxy api call, so that the console
fills the entire tab

resizing the window/iframe does not resize the vnc console
(because libvncserver has no setDesktopSize support)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2017-05-24 12:30:49 +02:00 committed by Wolfgang Bumiller
parent c6cb2f9d53
commit a43028e6a8
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,33 @@
From d3da00817202a762de5bcd7cf14c38dceb30a301 Mon Sep 17 00:00:00 2001
From: Dominik Csapak <d.csapak@proxmox.com>
Date: Fri, 19 May 2017 08:53:56 +0200
Subject: [PATCH 11/11] add width and height to vncproxy call in console tab
to set the resolution we want
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
app/pve.js | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/app/pve.js b/app/pve.js
index 668835a..c10df4e 100644
--- a/app/pve.js
+++ b/app/pve.js
@@ -52,6 +52,13 @@ export default function PVEUI(UI){
break;
}
+ if (this.resize == 'scale' &&
+ (this.consoletype === 'lxc' || this.consoletype === 'shell')) {
+ var size = this.getFBSize();
+ params.width = size.width;
+ params.height = size.height;
+ }
+
this.baseUrl = baseUrl;
this.url = url;
this.params = params;
--
2.11.0

View File

@ -8,3 +8,4 @@
0008-focus-canvas-after-load.patch 0008-focus-canvas-after-load.patch
0009-decrease-animation-time.patch 0009-decrease-animation-time.patch
0010-use-only-app.js.patch 0010-use-only-app.js.patch
0011-add-width-and-height-to-vncproxy-call-in-console-tab.patch