⎇ b91874d4e34ecc9054b468a338ffcae6f61a1b4a
benches/generated/overflow_main_axis.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
6 .new_leaf(taffy::style::Style {
7 flex_shrink: 0f32,
8 size: taffy::geometry::Size { width: taffy::style::Dimension::Points(200f32), height: auto() },
9 ..Default::default()
10 })
11 .unwrap();
12 let node = taffy
13 .new_with_children(
14 taffy::style::Style {
15 size: taffy::geometry::Size {
16 width: taffy::style::Dimension::Points(100f32),
17 height: taffy::style::Dimension::Points(100f32),
18 },
19 ..Default::default()
20 },
21 &[node0],
22 )
23 .unwrap();
24 taffy.compute_layout(node, taffy::geometry::Size::MAX_CONTENT).unwrap();
25}