mirror of
https://github.com/TaKO8Ki/gobang
synced 2024-10-31 03:20:33 +00:00
use a outside scroll bar with no borders
This commit is contained in:
parent
6bc3afef12
commit
1cd7ddf425
@ -49,7 +49,7 @@ impl DatabasesComponent {
|
||||
Self {
|
||||
tree: DatabaseTree::default(),
|
||||
filterd_tree: None,
|
||||
scroll: VerticalScroll::new(true, true),
|
||||
scroll: VerticalScroll::new(false, false),
|
||||
input: Vec::new(),
|
||||
input_idx: 0,
|
||||
input_cursor_position: 0,
|
||||
@ -218,7 +218,8 @@ impl DatabasesComponent {
|
||||
});
|
||||
|
||||
draw_list_block(f, chunks[1], Block::default().borders(Borders::NONE), items);
|
||||
self.scroll.draw(f, area);
|
||||
self.scroll.draw(f, chunks[1]);
|
||||
|
||||
if let Focus::Filter = self.focus {
|
||||
f.set_cursor(area.x + self.input_cursor_position + 1, area.y + 1)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user