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.

Scrollyscrolly

Conrad Irwin0eef4d03edf5
diff --git a/crates/collab_ui2/src/collab_panel.rs b/crates/collab_ui2/src/collab_panel.rs
index 1dda3a3c7bd..b179003901d 100644
--- a/crates/collab_ui2/src/collab_panel.rs
+++ b/crates/collab_ui2/src/collab_panel.rs
@@ -3211,12 +3211,15 @@ impl CollabPanel {
// }
impl Render for CollabPanel {
- type Element = Focusable<Div>;
+ type Element = Focusable<Stateful<Div>>;
fn render(&mut self, cx: &mut ViewContext<Self>) -> Self::Element {
div()
+ .id("collab-panel")
.key_context("CollabPanel")
.track_focus(&self.focus_handle)
+ .size_full()
+ .overflow_scroll()
.on_action(cx.listener(Self::confirm))
.on_action(cx.listener(Self::insert_space))
.map(|el| {