Round popover position to fix rendering artifacts

This commit is contained in:
Jeremy Soller 2024-01-06 20:38:08 -07:00
parent f77488f279
commit 94665024f8

View file

@ -594,7 +594,8 @@ impl Application for App {
let mut popover = widget::popover(mouse_area, menu::context_menu(entity));
match tab.context_menu {
Some(point) => {
popover = popover.position(point);
let rounded = Point::new(point.x.round(), point.y.round());
popover = popover.position(rounded);
}
None => {
popover = popover.show_popup(false);