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:
parent
c6cb2f9d53
commit
a43028e6a8
33
debian/patches/0011-add-width-and-height-to-vncproxy-call-in-console-tab.patch
vendored
Normal file
33
debian/patches/0011-add-width-and-height-to-vncproxy-call-in-console-tab.patch
vendored
Normal 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
|
||||||
|
|
1
debian/patches/series
vendored
1
debian/patches/series
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user