Only send one right click event
This commit is contained in:
parent
267e07472d
commit
9456f716c2
2 changed files with 23 additions and 18 deletions
|
@ -72,7 +72,10 @@ impl<V: 'static> Element<V> for Overlay<V> {
|
|||
.iter_mut()
|
||||
.map(|child| child.layout(view_state, cx))
|
||||
.collect::<SmallVec<_>>();
|
||||
let layout_id = cx.request_layout(&Style::default(), child_layout_ids.iter().copied());
|
||||
let mut overlay_style = Style::default();
|
||||
overlay_style.position = crate::Position::Absolute;
|
||||
|
||||
let layout_id = cx.request_layout(&overlay_style, child_layout_ids.iter().copied());
|
||||
|
||||
(layout_id, OverlayState { child_layout_ids })
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue