Skip to content

Commit

Permalink
Adapt to removal of From conversions Vec2 <-> Pos2
Browse files Browse the repository at this point in the history
  • Loading branch information
mankinskin committed Jul 6, 2021
1 parent dc13a04 commit e5e6e3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions egui/src/context_menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl ContextMenu {
fn show_impl(&mut self, ctx: &CtxRef, add_contents: impl FnOnce(&mut Ui)) -> Response {
Area::new(format!("context_menu_{:#?}", self.position))
.order(Order::Foreground)
.fixed_pos(self.position.to_vec2())
.fixed_pos(self.position)
.interactable(true)
.show(ctx, |ui| {
Frame::none()
Expand Down Expand Up @@ -262,4 +262,4 @@ impl MenuState {
}
self.sub_menu = Some((id, Box::new(MenuState::default())));
}
}
}

0 comments on commit e5e6e3c

Please sign in to comment.