From 3d4ff43f9ed771856597442d9ef28cde36842d3c Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Thu, 2 Sep 2021 18:46:48 +0200 Subject: [PATCH] Reset visible bounds when painting an `Overlay` element Co-Authored-By: Max Brunsfeld --- gpui/src/elements/overlay.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpui/src/elements/overlay.rs b/gpui/src/elements/overlay.rs index e83b95ba91ba4b654ab86a27f8f2f56d38d99624..79ab71c07d7cd4da4ae25991881887ed13ec2473 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(); }