TextMeshPro width different when wrapping or when new line. Bug?

I am using the Vertical Layout Group to expand the RectTransform to the text written.


  • When a word is too long for a
    single line
    , it wraps on the second
    line, but keeps the width of the
    TMPro transform maxed out. (See
    yellow border)

  • The expected behaviour would be same
    as when I put a new line
    (pressing enter between one and the
    very long word), which makes the
    transform only as wide as the
    longest line
    . (See yellow border)


I tried using the newest TMPro version (3.0.4) but still same behaviour.


Any ideas? Thank you in advance.


The setup is a very simple one. I don’t think it is because of the vertical layout group.