Add ChannelList to AppState

This commit is contained in:
Max Brunsfeld
2021-08-23 15:03:45 -07:00
parent 43bb38206f
commit 5ecedd894d
12 changed files with 134 additions and 93 deletions
+2
View File
@@ -106,6 +106,7 @@ impl Element for List {
}
fn paint(&mut self, bounds: RectF, _: &mut (), cx: &mut PaintContext) {
cx.scene.push_layer(Some(bounds));
let state = &mut *self.state.0.lock();
let visible_range = state.visible_range(bounds.height());
@@ -119,6 +120,7 @@ impl Element for List {
element.paint(origin, cx);
item_top += element.size().y();
}
cx.scene.pop_layer();
}
fn dispatch_event(