fix: ui: Markdown popups stopped taking vertical padding into account

Fix #1688
pull/1690/head
Blaž Hrastnik 3 years ago
parent 865881ba19
commit 24f86017a6
No known key found for this signature in database
GPG Key ID: 1238B9C4AD889640

@ -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))
}
}

Loading…
Cancel
Save