Fix buffer size issue

This commit is contained in:
Isaac Mills 2024-04-19 11:58:27 -04:00
parent a0b301e422
commit f6c85b5238
Signed by: fnmain
GPG key ID: B67D7410F33A0F61

View file

@ -359,6 +359,7 @@ pub fn resolve_paragraphs<'a>(
size.y += image_size.y;
}
if align.is_some() {
paragraphs.iter_mut().for_each(|paragraph| {
if paragraph.image_urls.is_none() {
paragraph
@ -370,6 +371,7 @@ pub fn resolve_paragraphs<'a>(
paragraph.buffer.shape_until_scroll(font_system, false);
}
});
}
(size, paragraphs)
}