From b96d97855bc540c0a9b02b8d330fd7325c992f4f Mon Sep 17 00:00:00 2001 From: sawka Date: Thu, 12 Oct 2023 12:42:33 -0700 Subject: [PATCH] fix content max size --- src/model/model.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/model/model.ts b/src/model/model.ts index 10ddd1bbc..667813304 100644 --- a/src/model/model.ts +++ b/src/model/model.ts @@ -639,9 +639,10 @@ class Screen { let height = termHeightFromRows(25, GlobalModel.termFontSize.get()); return { width, height }; } + // TODO calculate these sizes more deliberately let winSize = this.lastScreenSize; let width = boundInt(winSize.width - 50, 100, 5000); - let height = boundInt(winSize.height - 100, 100, 5000); + let height = boundInt(winSize.height - 120, 100, 5000); return { width, height }; }