Start working on tree layouting
This commit is contained in:
parent
6fdce9db1e
commit
021d5a8943
4 changed files with 159 additions and 49 deletions
|
|
@ -57,9 +57,10 @@ impl<M: Msg, S: MsgStore<M>> Chat<M, S> {
|
|||
|
||||
pub fn render(&mut self, frame: &mut Frame, pos: Pos, size: Size) {
|
||||
match self.mode {
|
||||
Mode::Tree => self
|
||||
.tree
|
||||
.render(&mut self.store, &self.room, frame, pos, size),
|
||||
Mode::Tree => {
|
||||
self.tree
|
||||
.render(&mut self.store, &self.room, &self.cursor, frame, pos, size)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue