Don't clip raw overlay bounds

User interface wraps the overlay in `overlay::Nested`.
Clipping here w/ the base Nested overlay always clipped
at (0, 0) position instead of the correct position of
the child overlay. It's clipped properly already within
`Nested::draw`.
This commit is contained in:
Cory Forsstrom 2023-07-24 09:26:24 -07:00
parent f21958c643
commit 2a05ef9601
No known key found for this signature in database
GPG key ID: 64D6B5851FFCAC9E

View file

@ -513,17 +513,13 @@ where
renderer, renderer,
); );
let overlay_bounds = layout.bounds(); overlay.draw(
renderer,
renderer.with_layer(overlay_bounds, |renderer| { theme,
overlay.draw( style,
renderer, Layout::new(layout),
theme, cursor,
style, );
Layout::new(layout),
cursor,
);
});
if cursor if cursor
.position() .position()