Fix chat size calculations
This commit is contained in:
parent
6fbc0c5ff7
commit
075a9b266e
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue