@@ -328,8 +328,8 @@ impl Component for Completion {
328 let y = popup_y;
328 let y = popup_y;
330 if let Some((rel_width, rel_height)) = markdown_doc.required_size((width, height)) {
330 if let Some((rel_width, rel_height)) = markdown_doc.required_size((width, height)) {
331− width = rel_width;
331+ width = rel_width.min(width);
332− height = rel_height;
332+ height = rel_height.min(height);
334 Rect::new(x, y, width, height)
334 Rect::new(x, y, width, height)