Rename FlexboxLayout back to Style (#251)
1pub fn compute() {
2 let mut taffy = taffy::Taffy::new();
3 let node0 = taffy
4 .new_with_children(
5 taffy::style::Style {
6 flex_basis: taffy::style::Dimension::Points(50f32),
7 size: taffy::geometry::Size { height: taffy::style::Dimension::Points(100f32), ..Default::default() },
8 ..Default::default()
9 },
10 &[],
11 )
12 .unwrap();
13 let node = taffy.new_with_children(taffy::style::Style { ..Default::default() }, &[node0]).unwrap();
14 taffy.compute_layout(node, taffy::geometry::Size::MAX_CONTENT).unwrap();
15}