Stretch to fit content in multiline input based on condition

I wonder if it would be possible to allow a condition to activate or deactivate the Stretch to fit content in a MultiLine Input? In my case, I am using a multiline input referencing the initial content to a repeating group that gets the initial content. This repeating group is below the multiline input. As I select the options the height of the input is changing naturally when some inputs are longer than others but when this happens it pushes my page down and kinda jerks the screen and jars the user’s attention. The reason for a multiline dropdown is then to be able to edit that pre-selected value in an easy to edit input so I was thinking I could say do not stretch when my repeating group is shown or condition is true or false.