1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

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

Signed-off-by: Frederick Borges <fborges@opennebula.io>
This commit is contained in:
Frederick Borges 2021-02-23 19:18:03 +01:00 committed by GitHub
parent 9cf6ccfcab
commit 3cd0949dba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -73,6 +73,8 @@ define(function(require) {
return false;
});
$(window).resize(Vmrc.updateScreen);
return false;
}

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();
}
});