We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47441f7 commit 2bb279aCopy full SHA for 2bb279a
webf/lib/src/rendering/paragraph.dart
@@ -294,10 +294,10 @@ class WebFRenderParagraph extends RenderBox
294
295
/// Compute distance to baseline of last text line
296
double computeDistanceToLastLineBaseline() {
297
- if (_lineOffset.isEmpty) {
+ if (_lineRenders.isEmpty) {
298
return 0.0;
299
}
300
- double lastLineOffset = _lineOffset[_lineOffset.length - 1];
+ double lastLineOffset = _lineRenders[_lineRenders.length - 1].lineRect.top;
301
ui.LineMetrics lastLineMetrics = _lineMetrics[_lineMetrics.length - 1];
302
303
// Use the baseline of the last line as paragraph baseline.
0 commit comments