Skip to content

Commit 2bb279a

Browse files
authored
Update paragraph.dart
1 parent 47441f7 commit 2bb279a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webf/lib/src/rendering/paragraph.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,10 @@ class WebFRenderParagraph extends RenderBox
294294

295295
/// Compute distance to baseline of last text line
296296
double computeDistanceToLastLineBaseline() {
297-
if (_lineOffset.isEmpty) {
297+
if (_lineRenders.isEmpty) {
298298
return 0.0;
299299
}
300-
double lastLineOffset = _lineOffset[_lineOffset.length - 1];
300+
double lastLineOffset = _lineRenders[_lineRenders.length - 1].lineRect.top;
301301
ui.LineMetrics lastLineMetrics = _lineMetrics[_lineMetrics.length - 1];
302302

303303
// Use the baseline of the last line as paragraph baseline.

0 commit comments

Comments
 (0)