Replace rightmost_point with righmost_row

This commit is contained in:
Antonio Scandurra
2021-05-20 12:47:08 +02:00
parent 96538354b3
commit ed57ffe5fa
4 changed files with 20 additions and 11 deletions
+1 -1
View File
@@ -520,7 +520,7 @@ impl LayoutState {
layout_cache: &TextLayoutCache,
app: &AppContext,
) -> f32 {
let row = view.rightmost_point(app).row();
let row = view.rightmost_row(app);
let longest_line_width = view
.layout_line(row, font_cache, layout_cache, app)
.unwrap()