Round popover position to fix rendering artifacts
This commit is contained in:
parent
f77488f279
commit
94665024f8
1 changed files with 2 additions and 1 deletions
|
|
@ -594,7 +594,8 @@ impl Application for App {
|
||||||
let mut popover = widget::popover(mouse_area, menu::context_menu(entity));
|
let mut popover = widget::popover(mouse_area, menu::context_menu(entity));
|
||||||
match tab.context_menu {
|
match tab.context_menu {
|
||||||
Some(point) => {
|
Some(point) => {
|
||||||
popover = popover.position(point);
|
let rounded = Point::new(point.x.round(), point.y.round());
|
||||||
|
popover = popover.position(rounded);
|
||||||
}
|
}
|
||||||
None => {
|
None => {
|
||||||
popover = popover.show_popup(false);
|
popover = popover.show_popup(false);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue