Fix scrolling issues
This commit is contained in:
parent
360af2f0cb
commit
ccab4510ea
2 changed files with 212 additions and 142 deletions
|
|
@ -901,9 +901,11 @@ fn render_log_view(frame: &mut Frame, app: &App) {
|
|||
.collect()
|
||||
};
|
||||
|
||||
// Use the scroll position calculated by the app
|
||||
let paragraph = Paragraph::new(text_lines)
|
||||
.block(block)
|
||||
.wrap(ratatui::widgets::Wrap { trim: false });
|
||||
.wrap(ratatui::widgets::Wrap { trim: false })
|
||||
.scroll((app.log_view_scroll as u16, 0));
|
||||
|
||||
frame.render_widget(paragraph, chunks[0]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue