⎇ ec371711989b7f4d870d91bea4b66bdd94b45c9e
benches/generated/flex_basis_unconstraint_column.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 flex_basis: taffy::style::Dimension::Points(50f32),
8 size: taffy::geometry::Size { width: taffy::style::Dimension::Points(100f32), height: auto() },
9 ..Default::default()
10 })
11 .unwrap();
12 let node = taffy
13 .new_with_children(
14 taffy::style::Style { flex_direction: taffy::style::FlexDirection::Column, ..Default::default() },
15 &[node0],
16 )
17 .unwrap();
18 taffy.compute_layout(node, taffy::geometry::Size::MAX_CONTENT).unwrap();
19}