⎇ b91874d4e34ecc9054b468a338ffcae6f61a1b4a
benches/generated/flex_grow_within_constrained_min_max_column.rs
Ñawpa willay
Pi imata llamkarqan
ch'uya
1pub fn compute() {
2 #[allow(unused_imports)]
3 use taffy::prelude::*;
4 let mut taffy = taffy::Taffy::new();
5 let node0 = taffy.new_leaf(taffy::style::Style { flex_grow: 1f32, ..Default::default() }).unwrap();
6 let node1 = taffy
7 .new_leaf(taffy::style::Style {
8 size: taffy::geometry::Size { width: auto(), height: taffy::style::Dimension::Points(50f32) },
9 ..Default::default()
10 })
11 .unwrap();
12 let node = taffy
13 .new_with_children(
14 taffy::style::Style {
15 min_size: taffy::geometry::Size { width: auto(), height: taffy::style::Dimension::Points(100f32) },
16 ..Default::default()
17 },
18 &[node0, node1],
19 )
20 .unwrap();
21 taffy.compute_layout(node, taffy::geometry::Size::MAX_CONTENT).unwrap();
22}