diff --git a/src/layout.ts b/src/layout.ts index a0d74457..bea3bf67 100644 --- a/src/layout.ts +++ b/src/layout.ts @@ -99,6 +99,7 @@ export class Layout extends Cell { if (c.xoff < p.xoff) p.xoff = c.xoff } + p.fit() p.focus() // remove this from the layout this.cells.splice(i, 1)