mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-24 22:42:10 +03:00
Fixed terminal resize error in Chrome.
This commit is contained in:
parent
93f8bf86ad
commit
a862580727
2
public/scripts/agent-desktop-0.0.2-min.js
vendored
2
public/scripts/agent-desktop-0.0.2-min.js
vendored
File diff suppressed because one or more lines are too long
@ -1319,7 +1319,7 @@
|
||||
window.onresize = function () {
|
||||
hideContextMenu();
|
||||
masterUpdate(512);
|
||||
if (xtermfit != null) { xtermfit.fit(); }
|
||||
if ((xtermfit != null) && (xxcurrentView == 12)) { xtermfit.fit(); }
|
||||
}
|
||||
setTimeout(function() { masterUpdate(512); }, 200);
|
||||
|
||||
@ -6355,7 +6355,7 @@
|
||||
adjustPanels();
|
||||
//setTimeout(adjustPanels, 10);
|
||||
//setTimeout(function() { xtermfit.fit(); }, 10);
|
||||
if (xterm != null) { xtermfit.fit(); if (xxcurrentView == 12) { xterm.focus(); } }
|
||||
if (xterm != null) { if (xxcurrentView == 12) { xtermfit.fit(); xterm.focus(); } }
|
||||
}
|
||||
|
||||
function deskToggleFocus() {
|
||||
@ -12129,6 +12129,9 @@
|
||||
// Update Recordings
|
||||
if (x == 52) { if (p52recordings == null) { refreshRecodings(); } updateRecordings(); }
|
||||
|
||||
// Update terminal size
|
||||
if ((x == 12) && (xtermfit != null)) { xtermfit.fit(); xterm.focus(); }
|
||||
|
||||
// Update the web page title
|
||||
if ((currentNode) && (x >= 10) && (x < 20)) {
|
||||
document.title = currentNode.name + ((meshes[currentNode.meshid])?(' - ' + meshes[currentNode.meshid].name):'') + ' - ' + decodeURIComponent('{{{extitle}}}');
|
||||
|
Loading…
Reference in New Issue
Block a user