Skip to content

Commit e5e6e3c

Browse files
committed
Adapt to removal of From conversions Vec2 <-> Pos2
1 parent dc13a04 commit e5e6e3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

egui/src/context_menu.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ impl ContextMenu {
121121
fn show_impl(&mut self, ctx: &CtxRef, add_contents: impl FnOnce(&mut Ui)) -> Response {
122122
Area::new(format!("context_menu_{:#?}", self.position))
123123
.order(Order::Foreground)
124-
.fixed_pos(self.position.to_vec2())
124+
.fixed_pos(self.position)
125125
.interactable(true)
126126
.show(ctx, |ui| {
127127
Frame::none()
@@ -262,4 +262,4 @@ impl MenuState {
262262
}
263263
self.sub_menu = Some((id, Box::new(MenuState::default())));
264264
}
265-
}
265+
}

0 commit comments

Comments
 (0)