Allow both action and completion lists to occupy max width and height of its element
This commit is contained in:
parent
513ddf1861
commit
bf35b78380
2 changed files with 34 additions and 5 deletions
|
@ -934,7 +934,9 @@ impl CompletionsMenu {
|
|||
)
|
||||
.max_h(max_height)
|
||||
.track_scroll(self.scroll_handle.clone())
|
||||
.with_width_from_item(widest_completion_ix);
|
||||
.with_width_from_item(widest_completion_ix)
|
||||
.use_max_height()
|
||||
.use_max_width();
|
||||
|
||||
Popover::new()
|
||||
.child(list)
|
||||
|
@ -1124,6 +1126,8 @@ impl CodeActionsMenu {
|
|||
.max_by_key(|(_, action)| action.lsp_action.title.chars().count())
|
||||
.map(|(ix, _)| ix),
|
||||
)
|
||||
.use_max_width()
|
||||
.use_max_height()
|
||||
.into_any_element();
|
||||
|
||||
if self.deployed_from_indicator {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue