We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc13a04 commit e5e6e3cCopy full SHA for e5e6e3c
egui/src/context_menu.rs
@@ -121,7 +121,7 @@ impl ContextMenu {
121
fn show_impl(&mut self, ctx: &CtxRef, add_contents: impl FnOnce(&mut Ui)) -> Response {
122
Area::new(format!("context_menu_{:#?}", self.position))
123
.order(Order::Foreground)
124
- .fixed_pos(self.position.to_vec2())
+ .fixed_pos(self.position)
125
.interactable(true)
126
.show(ctx, |ui| {
127
Frame::none()
@@ -262,4 +262,4 @@ impl MenuState {
262
}
263
self.sub_menu = Some((id, Box::new(MenuState::default())));
264
265
-}
+}
0 commit comments