fix: ui: Markdown popups stopped taking vertical padding into account
Fix #1688
This commit is contained in:
parent
865881ba19
commit
24f86017a6
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue