Skip to content

Commit afe7968

Browse files
authored
[web] Paragraph.longestLine doesn't need to check for isSingleLine anymore (flutter#16736)
1 parent 136a057 commit afe7968

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/web_ui/lib/src/engine/text/paragraph.dart

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,6 @@ class EngineParagraph implements ui.Paragraph {
210210
return maxWidth;
211211
}
212212

213-
// In the single-line case, the longest line is equal to the maximum
214-
// intrinsic width of the paragraph.
215-
if (_measurementResult.isSingleLine) {
216-
return _measurementResult.maxIntrinsicWidth;
217-
}
218-
219213
// If we don't have any line metrics information, there's no way to know the
220214
// longest line in a multi-line paragraph.
221215
return 0.0;

0 commit comments

Comments
 (0)