mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-23 14:42:28 +01:00
fix terminal scrolling
This commit is contained in:
parent
cb3b5b10d7
commit
8a0f33daf0
2
dist/engine.bundle.js
vendored
2
dist/engine.bundle.js
vendored
File diff suppressed because one or more lines are too long
@ -111,6 +111,7 @@ const Engine = {
|
|||||||
loadTerminalContent: function () {
|
loadTerminalContent: function () {
|
||||||
Engine.hideAllContent();
|
Engine.hideAllContent();
|
||||||
Engine.Display.terminalContent.style.display = "block";
|
Engine.Display.terminalContent.style.display = "block";
|
||||||
|
document.getElementById("terminal-input-td").scrollIntoView(false);
|
||||||
routing.navigateTo(Page.Terminal);
|
routing.navigateTo(Page.Terminal);
|
||||||
MainMenuLinks.Terminal.classList.add("active");
|
MainMenuLinks.Terminal.classList.add("active");
|
||||||
},
|
},
|
||||||
@ -358,6 +359,7 @@ const Engine = {
|
|||||||
Engine.Display.terminalContent.style.display = "none";
|
Engine.Display.terminalContent.style.display = "none";
|
||||||
|
|
||||||
Engine.Display.content.style.display = "none";
|
Engine.Display.content.style.display = "none";
|
||||||
|
Engine.Display.content.scrollTop = 0;
|
||||||
ReactDOM.unmountComponentAtNode(Engine.Display.content);
|
ReactDOM.unmountComponentAtNode(Engine.Display.content);
|
||||||
|
|
||||||
Engine.Display.infiltrationContent.style.display = "none";
|
Engine.Display.infiltrationContent.style.display = "none";
|
||||||
|
Loading…
Reference in New Issue
Block a user