Open gapspt opened 4 years ago
I face the following problem and I think it's the same in this issue:
showing 1,2,3,4,5,6,7
in separate lines with maxLines = 4
1 2 3 4
now resizing to show the rest
1 2 3 4 5 6 7
this would only show the first 4 numbers even though there are some space to fill (the difference between maxFontSize and minFontSize)
Steps to Reproduce Trying to resize a text that has more lines in itself more than the allowed
maxLines
results in the font size to be theminFontSize
and the displayed lines to be onlymaxLines
, leaving an empty space bellow. Expected result - Either: 1 - Cap the input text tomaxLines
lines first and then apply the rest of the resizing algorithm; or 2 - Apply the maximum possible lines possible when reaching theminFontSize
.The first option would be more consistent with the behaviour of
Text()
, which caps the lines tomaxLines
.Code sample
Screenshots Screenshot for the example above:
Version