Chat Message Box with Dynamic Message Sizes help

Here is the desired effect:

It is close to working fine however when I add a new item it does not adjust properly, like this:

101255-chat2-ss.png

If I go in the scene view and adjust the text of that new item just added it magically fixes itself:

Here is the hierarchy in the editor:

Here is the scroll rect content item:

Here is the chat item prefab:

Can anyone point me in the right direction here? Thank you.

Resolved. Turns out it is easier to do this kind of thing in code then use layout groups.