You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.
I am building an alternative to the watch command watchbind.
I am using the widget List with Listitems.
I am wondering why the example code
let items = vec![
ListItem::new("line one"),
ListItem::new(""),
ListItem::new("line four"),
];
let list = List::new(items)
.style(Style::default().fg(Color::White))
.highlight_style(Style::default().fg(Color::Black).bg(Color::White));
f.render_stateful_widget(list, f.size(), &mut events.state);
does not render the second line, but the state obviously knows about it because I can scroll normally with j and k (which I programmed).
To Reproduce
Expected behavior
All lines should be visible in the output, even the empty lines.
Screenshots
On the left side is the output of watchbind -- git -h, on the right side git -h. As you can see, the empty lines are omitted on the left, which uses the tui List widget.
Environment
OS: Linux
Terminal Emulator: kitty
Crate version: 0.19
Backend: crossterm
Additional context
The text was updated successfully, but these errors were encountered:
Description
I am building an alternative to the
watch
command watchbind.I am using the widget
List
withListitems
.I am wondering why the example code
does not render the second line, but the state obviously knows about it because I can scroll normally with j and k (which I programmed).
To Reproduce
Expected behavior
All lines should be visible in the output, even the empty lines.
Screenshots
On the left side is the output of
watchbind -- git -h
, on the right sidegit -h
. As you can see, the empty lines are omitted on the left, which uses the tui List widget.Environment
Additional context
The text was updated successfully, but these errors were encountered: