Having a second container is the way to go.
If the bounds of the viewed container are changed like that then the Viewport has to realign things or all of the positioning/scrolling functions would break.
Having a second container is the way to go.
If the bounds of the viewed container are changed like that then the Viewport has to realign things or all of the positioning/scrolling functions would break.