From 426ca94b520b48dbcfacfa43b80afb90df3f27a0 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Thu, 3 Feb 2022 10:23:34 +0100 Subject: [PATCH] Allow completions to bleed off the editor's bounds --- crates/editor/src/element.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs index 53175c917c..31926eb972 100644 --- a/crates/editor/src/element.rs +++ b/crates/editor/src/element.rs @@ -897,7 +897,10 @@ impl Element for EditorElement { completions_list.layout( SizeConstraint { min: Vector2F::zero(), - max: vec2f(800., (12. * line_height).min((size.y() - line_height) / 2.)), + max: vec2f( + f32::INFINITY, + (12. * line_height).min((size.y() - line_height) / 2.), + ), }, cx, );