fix widgets in tui

This commit is contained in:
Evan Almloff committed 2023-02-10 10:56:24 -06:00
1 parent f6feb3f3f0
commit db04550fc8
5 files changed
+73 -51

No files matched your search

+4 -2
View File
@@ -48,9 +48,11 @@ pub struct Query {
impl Query {
pub fn get(&self, id: NodeId) -> ElementRef {
let rdom = self.rdom.read();
let stretch = self.stretch.lock();
ElementRef::new(
self.rdom.read().expect("rdom lock poisoned"),
self.stretch.lock().expect("taffy lock poisoned"),
rdom.expect("rdom lock poisoned"),
stretch.expect("taffy lock poisoned"),
id,
)
}