Fixed bug with Scroll when removing objects from the container.

I noticed that the Scroll got stuck and scrolled past the bottom of the container if one was scrolled to the bottom and removed objects from the container.

Feel free to solve it in some other way, just feels nice submitting a solution with an issue :)

Have only tested the vertical scroll but the horizontal should work the same way.