mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-25 10:42:51 +02:00
build terminal not scrolling properly with new lines
This commit is contained in:
@@ -55,4 +55,7 @@ export function postContent(input: string, config: IPostContentConfig = {}): voi
|
||||
function scrollTerminalToBottom(): void {
|
||||
const container: HTMLElement = getElementById("terminal-container");
|
||||
container.scrollTop = container.scrollHeight;
|
||||
const td = document.getElementById("terminal-input-td");
|
||||
if (td === null) throw new Error("terminal-input-td should not be null");
|
||||
td.scrollIntoView(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user