mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
fix content max size
This commit is contained in:
+2
-1
@@ -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 };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user