Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

test(desktop-gpui): lay the empty zoom lane test view out as the editor's column

Richie McIlroy7e88b6033465
diff --git a/apps/desktop-gpui/src/editor_window.rs b/apps/desktop-gpui/src/editor_window.rs
index 1084cb2e7..855bffba4 100644
--- a/apps/desktop-gpui/src/editor_window.rs
+++ b/apps/desktop-gpui/src/editor_window.rs
@@ -13587,8 +13587,12 @@ mod tests {
fn render(&mut self, window: &mut Window, cx: &mut Context<Self>) -> impl IntoElement {
let viewport_width = f32::from(window.viewport_size().width);
self.editor.update(cx, |editor, cx| {
+ // A column, as in the editor: the body is `flex_1` over an
+ // absolute scroller, so anything else lays it out zero tall.
div()
.size_full()
+ .flex()
+ .flex_col()
.child(editor.render_timeline_body(viewport_width, cx))
})
}