create a shadow dom when a custom element is mounted
This commit is contained in:
1 parent
e7fb03f900
commit
788c00274e
5 files changed
+295
-97
No files matched your search
@@ -294,7 +294,7 @@ fn child_height(parent: &Node, tree: &impl TreeRef) -> u16 {
|
||||
.expect("Attempted to read a slot that does not exist")
|
||||
+ 1
|
||||
} else {
|
||||
panic!("Attempted to read the height of a shadow_tree without a slot");
|
||||
panic!("Attempted to read the height of a child of a node with a shadow tree, but the shadow tree does not have a slot. Every shadow tree attached to a node with children must have a slot.")
|
||||
}
|
||||
}
|
||||
None => parent.height + 1,
|
||||
|
||||
Reference in new issue
Block a user