on master help sign in
fix: ui: Markdown popups stopped taking vertical padding into account
24f8601Blaž Hrastnik
helix-term/src/ui/markdown.rs+1−1
@@ -256,6 +256,6 @@ impl Component for Markdown {
256 let max_text_width = (viewport.0 - padding).min(120);
256 let max_text_width = (viewport.0 - padding).min(120);
257 let (width, height) = crate::ui::text::required_size(&contents, max_text_width);
257 let (width, height) = crate::ui::text::required_size(&contents, max_text_width);
258
258
259− Some((width + padding * 2, height))
259+ Some((width + padding, height + padding))
260 }
260 }
261}
261}