F #2312: Resize VMRC console with browser resize (#865)

Signed-off-by: Frederick Borges <fborges@opennebula.io>
This commit is contained in:
Frederick Borges authored and GitHub committed 2021-02-23 19:18:03 +01:00
1 parent 9cf6ccfcab
commit 3cd0949dba
2 files changed
+8 -1

No files matched your search

@@ -73,6 +73,8 @@ define(function(require) {
return false;
});
$(window).resize(Vmrc.updateScreen);
return false;
}
+6 -1
View File
@@ -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();
}
});