mirror of
https://github.com/helix-editor/helix.git
synced 2024-09-19 23:21:21 +03:00
fix: ui: Markdown popups stopped taking vertical padding into account
Fix #1688
This commit is contained in:
parent
865881ba19
commit
24f86017a6
@ -256,6 +256,6 @@ fn required_size(&mut self, viewport: (u16, u16)) -> Option<(u16, u16)> {
|
||||
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…
Reference in New Issue
Block a user