This commit is contained in:
Blaž Hrastnik 2021-10-07 10:26:28 +09:00
parent 30171416cb
commit c71c9f69e2

View File

@ -228,6 +228,7 @@ fn required_size(&mut self, viewport: (u16, u16)) -> Option<(u16, u16)> {
return None;
}
let contents = parse(&self.contents, None, &self.config_loader);
// TODO: account for tab width
let max_text_width = (viewport.0 - padding).min(120);
let mut text_width = 0;
let mut height = padding;