diff --git a/gpui/src/elements/overlay.rs b/gpui/src/elements/overlay.rs index e83b95ba91..79ab71c07d 100644 --- a/gpui/src/elements/overlay.rs +++ b/gpui/src/elements/overlay.rs @@ -30,13 +30,13 @@ impl Element for Overlay { fn paint( &mut self, bounds: RectF, - visible_bounds: RectF, + _: RectF, size: &mut Self::LayoutState, cx: &mut PaintContext, ) { let bounds = RectF::new(bounds.origin(), *size); cx.scene.push_stacking_context(None); - self.child.paint(bounds.origin(), visible_bounds, cx); + self.child.paint(bounds.origin(), bounds, cx); cx.scene.pop_stacking_context(); }