How would I prevent automatically sized objects in an automatically sized scrolling from sinking into the bottom of it

how would I prevent this, im currently making a custom chat menu for my game and gradually as more messages are added new ones begin to sink outside of the scrolling frame at the bottom (the newest messages)

heres a picture as an example to show better what i mean
image