Fix buffer size issue
This commit is contained in:
parent
a0b301e422
commit
f6c85b5238
1 changed files with 13 additions and 11 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue