ignore out of bounds renders

This commit is contained in:
Evan Almloff committed 2022-12-05 20:30:05 -06:00
1 parent a823b45af9
commit 57ef56511c
3 files changed
+16 -8

No files matched your search

+2 -2
View File
@@ -158,12 +158,12 @@ fn render_vdom(
let mut style=*taffy.style(root_node).unwrap();
style.size=Size {
width: Dimension::Points(width as f32),
height: Dimension::Points(height as f32),
height: Dimension::Points(height as f32),
};
taffy.set_style(root_node, style).unwrap();
let size =Size {
width: AvailableSpace::Definite(width as f32),
width: AvailableSpace::Definite(width as f32),
height: AvailableSpace::Definite(height as f32),
};
taffy