Scroll to end of log

This commit is contained in:
Zaher Salman committed 2026-09-22 20:18:08 +02:00
1 parent 562c3c22c0
commit cc22d27a4f
2 files changed
+5 -1

No files matched your search

+4 -1
View File
@@ -3249,7 +3249,10 @@ function showJobLogWindow() {
let logWindow = document.getElementById("jobLogWindow");
if (!logWindow) return;
let logText = document.getElementById("jobLogPopupText");
if (logText) renderJobLogElement(logText, job.log.join("\n"));
if (logText) {
renderJobLogElement(logText, job.log.join("\n"));
logText.scrollTop = logText.scrollHeight;
}
makeModelessDialogDraggable(logWindow);
+1
View File
@@ -50,6 +50,7 @@ function testEveryBrowserWindowUsesTheManager() {
assert.match(lib, /function bringMusrfitFloatingWindowToFront/);
assert.match(lib, /makeModelessDialogDraggable[\s\S]*bringMusrfitFloatingWindowToFront\(dialog\)/);
assert.match(lib, /showJobLogWindow[\s\S]*bringMusrfitFloatingWindowToFront\(logWindow\)/);
assert.match(lib, /showJobLogWindow[\s\S]*scrollTop\s*=\s*logText\.scrollHeight/);
assert.match(lib, /showQuickStartHelp[\s\S]*bringMusrfitFloatingWindowToFront\(dialog\)/);
assert.match(css, /\.main-action-bar\s*\{[\s\S]*?z-index:\s*900/);
assert.match(css, /\.job-log-window\s*\{[\s\S]*?z-index:\s*1100/);