mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[web] Paragraph.longestLine doesn't need to check for isSingleLine anymore (flutter/engine#16736)
This commit is contained in:
parent
5f8ca597db
commit
1e37bb489a
@ -210,12 +210,6 @@ class EngineParagraph implements ui.Paragraph {
|
||||
return maxWidth;
|
||||
}
|
||||
|
||||
// In the single-line case, the longest line is equal to the maximum
|
||||
// intrinsic width of the paragraph.
|
||||
if (_measurementResult.isSingleLine) {
|
||||
return _measurementResult.maxIntrinsicWidth;
|
||||
}
|
||||
|
||||
// If we don't have any line metrics information, there's no way to know the
|
||||
// longest line in a multi-line paragraph.
|
||||
return 0.0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user