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 align_self: taffy::style::AlignSelf::Center,
7 size: taffy::geometry::Size {
8 width: taffy::style::Dimension::Points(10f32),
9 height: taffy::style::Dimension::Points(10f32),
10 ..Default::default()
11 },
12 ..Default::default()
13 },
14 &[],
15 )
16 .unwrap();
17 let node = taffy
18 .new_with_children(
19 taffy::style::Style {
20 size: taffy::geometry::Size {
21 width: taffy::style::Dimension::Points(100f32),
22 height: taffy::style::Dimension::Points(100f32),
23 ..Default::default()
24 },
25 ..Default::default()
26 },
27 &[node0],
28 )
29 .unwrap();
30 taffy.compute_layout(node, taffy::geometry::Size::MAX_CONTENT).unwrap();
31}