fix widgets in tui
This commit is contained in:
1 parent
f6feb3f3f0
commit
db04550fc8
5 files changed
+73
-51
No files matched your search
@@ -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,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user