File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments