Allow completions to bleed off the editor's bounds
This commit is contained in:
@@ -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,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user