Skip to content

Commit

Permalink
Update editable_text_line.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir-P committed Jan 6, 2024
1 parent 44dc327 commit 67b000b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ class RenderEditableTextLine extends RenderEditableBox {
final lineBoundary = getLineBoundary(position);
final boxes = body!.getBoxesForSelection(TextSelection(
baseOffset: lineBoundary.start, extentOffset: lineBoundary.end));
return boxes.firstOrNull?.toRect().height ?? 0;
return boxes.fold(0, (v, e) => math.max(v, e.toRect().height));
}

@override
Expand Down

0 comments on commit 67b000b

Please sign in to comment.