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:
parent
f21958c643
commit
2a05ef9601
1 changed files with 7 additions and 11 deletions
|
|
@ -513,17 +513,13 @@ where
|
|||
renderer,
|
||||
);
|
||||
|
||||
let overlay_bounds = layout.bounds();
|
||||
|
||||
renderer.with_layer(overlay_bounds, |renderer| {
|
||||
overlay.draw(
|
||||
renderer,
|
||||
theme,
|
||||
style,
|
||||
Layout::new(layout),
|
||||
cursor,
|
||||
);
|
||||
});
|
||||
overlay.draw(
|
||||
renderer,
|
||||
theme,
|
||||
style,
|
||||
Layout::new(layout),
|
||||
cursor,
|
||||
);
|
||||
|
||||
if cursor
|
||||
.position()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue