Skip to content

Commit 7540e16

Browse files
committed
Set drag bounds on egui::menu to Rect::EVERYTHING
1 parent 5f05f0c commit 7540e16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

egui/src/menu.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ pub fn menu(ui: &mut Ui, title: impl ToString, add_contents: impl FnOnce(&mut Ui
6767
pub(crate) fn menu_ui<'c>(ctx: &CtxRef, menu_id: Id, pos: Pos2, mut style: Style, add_contents: impl FnOnce(&mut Ui) + 'c) -> Response {
6868
let area = Area::new(menu_id)
6969
.order(Order::Foreground)
70-
.fixed_pos(pos);
70+
.fixed_pos(pos)
71+
.drag_bounds(Rect::EVERYTHING);
7172
let frame = Frame::menu(&style);
7273

7374
area.show(ctx, |ui| {

0 commit comments

Comments
 (0)