mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-29 12:38:02 +00:00
Round up line width
This commit is contained in:
parent
3a8e9b5697
commit
fff2d7955e
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue