We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f98102 commit 6f9d8f7Copy full SHA for 6f9d8f7
bindings/swift/StretchCore/src/lib.rs
@@ -247,7 +247,7 @@ pub unsafe extern "C" fn stretch_node_set_measure(
247
*node,
248
Some(stretch::node::MeasureFunc::Boxed(Box::new(move |constraint| {
249
let size = measure(swift_ptr, constraint.width.or_else(f32::NAN), constraint.height.or_else(f32::NAN));
250
- Size { width: size.width, height: size.height }
+ size
251
}))),
252
)
253
.unwrap();
src/algo.rs
@@ -90,7 +90,7 @@ impl Forest {
90
91
self.nodes[root].layout = result::Layout {
92
order: 0,
93
- size: Size { width: result.size.width, height: result.size.height },
+ size: result.size,
94
location: Point::zero(),
95
};
96
0 commit comments