Allow completions to bleed off the editor's bounds
This commit is contained in:
parent
d246a39b57
commit
426ca94b52
1 changed files with 4 additions and 1 deletions
|
@ -897,7 +897,10 @@ impl Element for EditorElement {
|
||||||
completions_list.layout(
|
completions_list.layout(
|
||||||
SizeConstraint {
|
SizeConstraint {
|
||||||
min: Vector2F::zero(),
|
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,
|
cx,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue