From 5fba4861674afeb1daa2d5d1f4acc8340c30b5c4 Mon Sep 17 00:00:00 2001 From: Matthew Gapp <61894094+matthewgapp@users.noreply.github.com> Date: Sun, 4 Jun 2023 13:37:56 -0700 Subject: [PATCH] implement compute max instrinsic on env scope. --- druid/src/widget/env_scope.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/druid/src/widget/env_scope.rs b/druid/src/widget/env_scope.rs index ab2a14074..d9920e2c7 100644 --- a/druid/src/widget/env_scope.rs +++ b/druid/src/widget/env_scope.rs @@ -113,6 +113,19 @@ impl> Widget for EnvScope { ..Default::default() } } + + fn compute_max_intrinsic( + &mut self, + axis: super::Axis, + ctx: &mut LayoutCtx, + bc: &BoxConstraints, + data: &T, + env: &Env, + ) -> f64 { + self.child + .widget_mut() + .compute_max_intrinsic(axis, ctx, bc, data, env) + } } impl> WidgetWrapper for EnvScope {