From 24f86017a6de5634b17cdc24af1edd6293b33999 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Mon, 21 Feb 2022 23:23:20 +0900 Subject: [PATCH] fix: ui: Markdown popups stopped taking vertical padding into account Fix #1688 --- helix-term/src/ui/markdown.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-term/src/ui/markdown.rs b/helix-term/src/ui/markdown.rs index d1835be6f..e6f2316ed 100644 --- a/helix-term/src/ui/markdown.rs +++ b/helix-term/src/ui/markdown.rs @@ -256,6 +256,6 @@ impl Component for Markdown { let max_text_width = (viewport.0 - padding).min(120); let (width, height) = crate::ui::text::required_size(&contents, max_text_width); - Some((width + padding * 2, height)) + Some((width + padding, height + padding)) } }