Skip to content

Commit

Permalink
F #2312: Resize VMRC console with browser resize (#865)
Browse files Browse the repository at this point in the history
Signed-off-by: Frederick Borges <[email protected]>
  • Loading branch information
Frederick Borges authored Feb 23, 2021
1 parent 9cf6ccf commit 3cd0949
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/sunstone/public/app/tabs/vms-tab/dialogs/vmrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ define(function(require) {
return false;
});

$(window).resize(Vmrc.updateScreen);

return false;
}

Expand Down
7 changes: 6 additions & 1 deletion src/sunstone/public/app/utils/vmrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ define(function (require) {
"unlock": unlock,
"vmrcCallback": vmrcCallback,
"disconnect": disconnect,
"sendCtrlAltDel": sendCtrlAltDel
"sendCtrlAltDel": sendCtrlAltDel,
"updateScreen": updateScreen
};

function lockStatus() {
Expand Down Expand Up @@ -146,4 +147,8 @@ define(function (require) {
function sendCtrlAltDel() {
if (_wmks) { _wmks.sendCAD(); }
}

function updateScreen() {
_wmks.updateScreen();
}
});

0 comments on commit 3cd0949

Please sign in to comment.