From 6d3ff092f7eb3e2c5944ba1da05bb2de4c4cf428 Mon Sep 17 00:00:00 2001 From: Nico Burns Date: Fri, 17 Nov 2023 00:00:03 +0000 Subject: [PATCH] Implement compute_max_intrinsic for Box --- src/widget/widget.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/widget/widget.rs b/src/widget/widget.rs index 4f7b2f288..f82300f30 100644 --- a/src/widget/widget.rs +++ b/src/widget/widget.rs @@ -222,6 +222,15 @@ impl Widget for Box { self.deref_mut().layout(cx, bc) } + fn compute_max_intrinsic( + &mut self, + axis: Axis, + ctx: &mut LayoutCx, + bc: &BoxConstraints, + ) -> f64 { + self.deref_mut().compute_max_intrinsic(axis, ctx, bc) + } + fn accessibility(&mut self, cx: &mut AccessCx) { self.deref_mut().accessibility(cx); }