Round up line width

This commit is contained in:
Antonio Scandurra 2023-11-22 14:01:22 +01:00
parent 3a8e9b5697
commit fff2d7955e

View file

@ -191,7 +191,7 @@ impl TextState {
for line in &lines {
let line_size = line.size(line_height);
size.height += line_size.height;
size.width = size.width.max(line_size.width);
size.width = size.width.max(line_size.width).ceil();
}
element_state.lock().replace(TextStateInner {