From b5559370543630644e7130933f9ba85425a38cc2 Mon Sep 17 00:00:00 2001 From: Quinten Kock Date: Tue, 2 Dec 2025 23:42:54 +0100 Subject: [PATCH] Make sure resized displayables are fully in view --- src/app/displayable.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/displayable.ts b/src/app/displayable.ts index b6a5796..e88c9f2 100644 --- a/src/app/displayable.ts +++ b/src/app/displayable.ts @@ -47,6 +47,7 @@ export abstract class Displayable { changeWidth(increment: number) { const w = parseInt(window.getComputedStyle(this.dom).width, 10); this.dom.style.width = w + increment + "px"; + this.dom.scrollIntoView(); return true; }