From 24f86017a6de5634b17cdc24af1edd6293b33999 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Mon, 21 Feb 2022 23:23:20 +0900 Subject: 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(-) (limited to 'helix-term/src/ui') diff --git a/helix-term/src/ui/markdown.rs b/helix-term/src/ui/markdown.rs index d1835be6..e6f2316e 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)) } } -- cgit v1.2.3-70-g09d2