Don't use boxed cell slice, use a refcell instead

This commit is contained in:
Jonathan Kelley committed 2023-07-19 12:08:13 -07:00
1 parent f69b84bf34
commit 2871c8bb4d
7 files changed
+24 -119

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ fn app(cx: Scope) -> Element {
background_color: "hsl({hue}, 70%, {brightness}%)",
onmousemove: move |evt| {
if let RenderReturn::Ready(node) = cx.root_node() {
if let Some(id) = node.root_ids.get(0){
if let Some(id) = node.root_ids.borrow().get(0).cloned() {
let node = tui_query.get(mapping.get_node_id(id).unwrap());
let Size{width, height} = node.size().unwrap();
let pos = evt.inner().element_coordinates();