fix terminal scrolling

This commit is contained in:
Olivier Gagnon 2021-09-14 14:54:45 -04:00
parent cb3b5b10d7
commit 8a0f33daf0
2 changed files with 3 additions and 1 deletions

File diff suppressed because one or more lines are too long

@ -111,6 +111,7 @@ const Engine = {
loadTerminalContent: function () {
Engine.hideAllContent();
Engine.Display.terminalContent.style.display = "block";
document.getElementById("terminal-input-td").scrollIntoView(false);
routing.navigateTo(Page.Terminal);
MainMenuLinks.Terminal.classList.add("active");
},
@ -358,6 +359,7 @@ const Engine = {
Engine.Display.terminalContent.style.display = "none";
Engine.Display.content.style.display = "none";
Engine.Display.content.scrollTop = 0;
ReactDOM.unmountComponentAtNode(Engine.Display.content);
Engine.Display.infiltrationContent.style.display = "none";