Multi-row status/app-switcher bar layouts

This commit is contained in:
James Babcock committed 2026-10-13 00:21:01 -07:00
1 parent f6201d8e41
commit 26e4396972
14 files changed
+706 -229

No files matched your search

+10 -2
View File
@@ -49,10 +49,18 @@ export class DocumentView {
private scrollLine = 0;
constructor(
private readonly width: number,
private readonly height: number,
private width: number,
private height: number,
) {}
/** Re-wrap the document for a region of a new size, keeping the selection in view. */
resize(width: number, height: number): void {
if (width === this.width && height === this.height) return;
this.width = width;
this.height = height;
if (this.root) this.setDocument(this.root);
}
setDocument(root: DocumentRoot): void {
const previousId = this.selectedNode()?.id;
this.root = root;