ignore out of bounds renders
This commit is contained in:
1 parent
a823b45af9
commit
57ef56511c
3 files changed
+16
-8
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user