Fix sticky scroll positioning to avoid bg leaking through

Fixes #198352
This commit is contained in:
Daniel Imms 2023-11-15 12:49:40 -08:00
parent 8943ea4790
commit d7b119fc34
No known key found for this signature in database
GPG key ID: E5CF412B63651C69

View file

@ -296,7 +296,7 @@ export class TerminalStickyScrollOverlay extends Disposable {
const termBox = xterm.element.getBoundingClientRect();
const rowHeight = termBox.height / xterm.rows;
const overlayHeight = stickyScrollLineCount * rowHeight;
this._element.style.bottom = `${termBox.height - overlayHeight}px`;
this._element.style.bottom = `${termBox.height - overlayHeight + 1}px`;
}
} else {
this._setVisible(false);