Skip to content

Commit

Permalink
Merge pull request #6 from sm2017/patch-1
Browse files Browse the repository at this point in the history
Fixed #5
  • Loading branch information
jonataslaw committed Nov 19, 2020
2 parents 9c8adc4 + 3dcabec commit 918649a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/readmore.dart
Expand Up @@ -123,7 +123,7 @@ class ReadMoreTextState extends State<ReadMoreText> {
ellipsis: overflow == TextOverflow.ellipsis ? _kEllipsis : null,
locale: locale,
);
textPainter.layout(minWidth: constraints.minWidth, maxWidth: maxWidth);
textPainter.layout(minWidth: 0, maxWidth: maxWidth);
final linkSize = textPainter.size;

// Layout and measure text
Expand Down

0 comments on commit 918649a

Please sign in to comment.