make all core tests compile

This commit is contained in:
Evan Almloff committed 2024-01-11 15:18:11 -06:00
1 parent a9d09d858b
commit fd0a53ab63
21 files changed
+123 -148

No files matched your search

+5
View File
@@ -383,4 +383,9 @@ impl ScopeId {
pub fn schedule_update(&self) -> Arc<dyn Fn() + Send + Sync + 'static> {
with_scope(*self, |cx| cx.schedule_update()).expect("to be in a dioxus runtime")
}
/// Get the height of the current scope
pub fn height(self) -> u32 {
with_scope(self, |cx| cx.height()).expect("to be in a dioxus runtime")
}
}