Make sure resized displayables are fully in view
This commit is contained in:
parent
38698c24ed
commit
b555937054
|
|
@ -47,6 +47,7 @@ export abstract class Displayable {
|
||||||
changeWidth(increment: number) {
|
changeWidth(increment: number) {
|
||||||
const w = parseInt(window.getComputedStyle(this.dom).width, 10);
|
const w = parseInt(window.getComputedStyle(this.dom).width, 10);
|
||||||
this.dom.style.width = w + increment + "px";
|
this.dom.style.width = w + increment + "px";
|
||||||
|
this.dom.scrollIntoView();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue