I have a container element that will scroll if the content overflows. For this set-up I cannot dynamically change the overflow properties of the container very easily.