⎇ 4e1c35c5d40729fdaafc40afeea863aa12ed1d5a
benches/generated/max_width_overrides_width.rs
History
Who touched what
raw
1pub fn compute() {
2 #[allow(unused_imports)]
3 use taffy::prelude::*;
4 let mut taffy = taffy::Taffy::new();
5 let node0 = taffy
6 .new_leaf(taffy::style::Style {
7 size: taffy::geometry::Size { width: taffy::style::Dimension::Points(200f32), height: auto() },
8 max_size: taffy::geometry::Size { width: taffy::style::Dimension::Points(100f32), height: auto() },
9 ..Default::default()
10 })
11 .unwrap();
12 let node = taffy.new_with_children(taffy::style::Style { ..Default::default() }, &[node0]).unwrap();
13 taffy.compute_layout(node, taffy::geometry::Size::MAX_CONTENT).unwrap();
14}