Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

outline: Enable scrollbar in outline view picker (#46774)

Xiaobo Liu6c5da3df229e
diff --git a/crates/outline/src/outline.rs b/crates/outline/src/outline.rs
index 366d48bcf71..9e6cc045a76 100644
--- a/crates/outline/src/outline.rs
+++ b/crates/outline/src/outline.rs
@@ -121,7 +121,9 @@ impl OutlineView {
) -> OutlineView {
let delegate = OutlineViewDelegate::new(cx.entity().downgrade(), outline, editor, cx);
let picker = cx.new(|cx| {
- Picker::uniform_list(delegate, window, cx).max_height(Some(vh(0.75, window)))
+ Picker::uniform_list(delegate, window, cx)
+ .max_height(Some(vh(0.75, window)))
+ .show_scrollbar(true)
});
OutlineView { picker }
}