From 3cd0949dbaeaab0255869c81aeacb616c61683d1 Mon Sep 17 00:00:00 2001 From: Frederick Borges Date: Tue, 23 Feb 2021 19:18:03 +0100 Subject: [PATCH] F #2312: Resize VMRC console with browser resize (#865) Signed-off-by: Frederick Borges --- src/sunstone/public/app/tabs/vms-tab/dialogs/vmrc.js | 2 ++ src/sunstone/public/app/utils/vmrc.js | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/sunstone/public/app/tabs/vms-tab/dialogs/vmrc.js b/src/sunstone/public/app/tabs/vms-tab/dialogs/vmrc.js index 58ced7e1cd..217a85b8c6 100644 --- a/src/sunstone/public/app/tabs/vms-tab/dialogs/vmrc.js +++ b/src/sunstone/public/app/tabs/vms-tab/dialogs/vmrc.js @@ -73,6 +73,8 @@ define(function(require) { return false; }); + $(window).resize(Vmrc.updateScreen); + return false; } diff --git a/src/sunstone/public/app/utils/vmrc.js b/src/sunstone/public/app/utils/vmrc.js index 6e5f39d379..c4d24e1393 100644 --- a/src/sunstone/public/app/utils/vmrc.js +++ b/src/sunstone/public/app/utils/vmrc.js @@ -30,7 +30,8 @@ define(function (require) { "unlock": unlock, "vmrcCallback": vmrcCallback, "disconnect": disconnect, - "sendCtrlAltDel": sendCtrlAltDel + "sendCtrlAltDel": sendCtrlAltDel, + "updateScreen": updateScreen }; function lockStatus() { @@ -146,4 +147,8 @@ define(function (require) { function sendCtrlAltDel() { if (_wmks) { _wmks.sendCAD(); } } + + function updateScreen() { + _wmks.updateScreen(); + } });