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,
|
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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue