fix content max size

This commit is contained in:
sawka 2023-10-12 12:42:33 -07:00
parent 84f60a21f9
commit b96d97855b

View File

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