Allow completions to bleed off the editor's bounds

This commit is contained in:
Antonio Scandurra 2022-02-03 10:23:34 +01:00
parent d246a39b57
commit 426ca94b52

View file

@ -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,
);