Merge pull request #894 from Demonthos/query-system

Create onmounted Event
This commit is contained in:
Jon Kelley authored and GitHub committed 2023-05-18 13:17:15 +02:00
commit 379ea09b12
26 files changed
+1221 -109

No files matched your search

+1 -9
View File
@@ -91,15 +91,7 @@ impl<'a> ElementRef<'a> {
pub fn layout(&self) -> Option<Layout> {
let layout = self
.stretch
.layout(
self.inner
.get(self.id)
.unwrap()
.get::<TaffyLayout>()
.unwrap()
.node
.ok()?,
)
.layout(self.inner.get(self.id)?.get::<TaffyLayout>()?.node.ok()?)
.ok();
layout.map(|layout| Layout {
order: layout.order,