fix gaps in layout

This commit is contained in:
Evan Almloff committed 2022-12-06 09:08:25 -06:00
1 parent 6ee4f7df4f
commit 4be64cb9f0
6 files changed
+57 -33

No files matched your search

+2 -4
View File
@@ -125,7 +125,7 @@ impl PersistantElementIter {
/// get the next element
pub fn next<S: State>(&mut self, rdom: &RealDom<S>) -> ElementProduced {
let r = if self.stack.is_empty() {
if self.stack.is_empty() {
let id = NodeId(0);
let new = (id, NodePosition::AtNode);
self.stack.push(new);
@@ -156,9 +156,7 @@ impl PersistantElementIter {
ElementProduced::Progressed(self.pop())
}
}
};
println!("next: {:?}", r);
r
}
}
/// get the previous element