Break content mask for hoverables
This commit is contained in:
parent
e9e621518f
commit
7a8aba329b
3 changed files with 29 additions and 5 deletions
|
@ -144,9 +144,11 @@ impl Element for Overlay {
|
|||
}
|
||||
|
||||
cx.with_element_offset(desired.origin - bounds.origin, |cx| {
|
||||
for child in self.children {
|
||||
child.paint(cx);
|
||||
}
|
||||
cx.break_content_mask(|cx| {
|
||||
for child in self.children {
|
||||
child.paint(cx);
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue