mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-07 02:57:34 +00:00
Track scroll in editor's context menu
This commit is contained in:
parent
bd4a710cef
commit
8aaa46a1b6
1 changed files with 2 additions and 0 deletions
|
@ -1370,6 +1370,7 @@ impl CompletionsMenu {
|
|||
.collect()
|
||||
},
|
||||
)
|
||||
.track_scroll(self.scroll_handle.clone())
|
||||
.with_width_from_item(widest_completion_ix);
|
||||
|
||||
list.render_into_any()
|
||||
|
@ -1587,6 +1588,7 @@ impl CodeActionsMenu {
|
|||
.elevation_1(cx)
|
||||
.px_2()
|
||||
.py_1()
|
||||
.track_scroll(self.scroll_handle.clone())
|
||||
.with_width_from_item(
|
||||
self.actions
|
||||
.iter()
|
||||
|
|
Loading…
Reference in a new issue