Make sure resized displayables are fully in view

This commit is contained in:
Quinten Kock 2025-12-02 23:42:54 +01:00
parent 38698c24ed
commit b555937054
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}