Skip to content

Commit c3d441e

Browse files
committed
updates
1 parent 995472a commit c3d441e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/mongol_paragraph.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class MongolParagraph {
3434
_calculateLineBreaks(height);
3535
_calculateWidth();
3636
_height = height;
37-
_calculateIntrinsicSize();
37+
_calculateIntrinsicHeight();
3838
}
3939

4040
List<TextRun> _runs = [];
@@ -133,13 +133,13 @@ class MongolParagraph {
133133
// Internally this translates a horizontal run width to the vertical name
134134
// that it is known as externally.
135135
// FIXME: This does not handle newline characters.
136-
void _calculateIntrinsicSize() {
136+
void _calculateIntrinsicHeight() {
137137
assert(_runs != null);
138138

139139
double sum = 0;
140140
double minRunWidth = double.infinity;
141141
for (TextRun run in _runs) {
142-
final width = run.paragraph.width;
142+
final width = run.paragraph.longestLine;
143143
minRunWidth = math.min(width, minRunWidth);
144144
sum += width;
145145
}

0 commit comments

Comments
 (0)