Round popup position
This commit is contained in:
parent
bb0c42e92f
commit
34c66caac5
1 changed files with 3 additions and 2 deletions
|
|
@ -2213,10 +2213,11 @@ impl Application for App {
|
|||
text_box = text_box.line_numbers();
|
||||
}
|
||||
let mut popover = widget::popover(text_box);
|
||||
if let Some(position) = tab.context_menu {
|
||||
if let Some(point) = tab.context_menu {
|
||||
let rounded = Point::new(point.x.round(), point.y.round());
|
||||
popover = popover
|
||||
.popup(menu::context_menu(&self.key_binds, tab_id))
|
||||
.position(position);
|
||||
.position(rounded);
|
||||
}
|
||||
tab_column = tab_column.push(popover);
|
||||
if !status.is_empty() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue