Replace rightmost_point with righmost_row
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user