forked from Blendman974/faceclaw
Multi-row status/app-switcher bar layouts
This commit is contained in:
1 parent
f6201d8e41
commit
26e4396972
14 files changed
+706
-229
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user