Fix chat size calculations

This commit is contained in:
Joscha 2022-06-28 10:24:28 +02:00
parent 6fbc0c5ff7
commit 075a9b266e

View file

@ -57,7 +57,7 @@ fn render_block<M: Msg>(frame: &mut Frame, pos: Pos, size: Size, block: &Block<M
for (i, line) in msg.lines.iter().enumerate() {
let y = pos.y + block.line + i as i32;
if y < 0 || y >= size.height as i32 {
if y < 0 || y >= pos.y + size.height as i32 {
continue;
}