mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-07 02:57:34 +00:00
Correctly swap position of context menu
This commit is contained in:
parent
eaf90a4fbd
commit
524f892fb0
1 changed files with 1 additions and 1 deletions
|
@ -1051,7 +1051,7 @@ impl EditorElement {
|
||||||
}
|
}
|
||||||
|
|
||||||
if list_origin.y + list_height > text_bounds.lower_right().y {
|
if list_origin.y + list_height > text_bounds.lower_right().y {
|
||||||
list_origin.y -= layout.position_map.line_height - list_height;
|
list_origin.y -= layout.position_map.line_height + list_height;
|
||||||
}
|
}
|
||||||
|
|
||||||
context_menu.draw(list_origin, available_space, cx);
|
context_menu.draw(list_origin, available_space, cx);
|
||||||
|
|
Loading…
Reference in a new issue