parent
3ee9a1e187
commit
d1e936fb25
1 changed files with 4 additions and 1 deletions
|
|
@ -186,7 +186,8 @@ impl core::text::Paragraph for Paragraph {
|
|||
Some(new_bounds.height),
|
||||
);
|
||||
|
||||
let (min_bounds, _has_rtl) = text::measure(¶graph.buffer);
|
||||
let min_bounds =
|
||||
align(&mut paragraph.buffer, &mut font_system, paragraph.align_x);
|
||||
|
||||
paragraph.bounds = new_bounds;
|
||||
paragraph.min_bounds = min_bounds;
|
||||
|
|
@ -376,6 +377,8 @@ fn align(
|
|||
}
|
||||
|
||||
needs_relayout = true;
|
||||
} else if let Some(line) = buffer.lines.first_mut() {
|
||||
needs_relayout = line.set_align(None);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue