Skip to content

Commit

Permalink
Implement compute_max_intrinsic for Box<dyn AnyWidget>
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Nov 21, 2023
1 parent 1290910 commit 6d3ff09
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/widget/widget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,15 @@ impl Widget for Box<dyn AnyWidget> {
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);
}
Expand Down

0 comments on commit 6d3ff09

Please sign in to comment.