The signal causes the container size to be fixed -- this order is important because it makes more sense to change the size of the scrollable area first, and then restore the scroll.

When you restore the scroll first, and then change size of the scrollable area, you cannot be sure that the resultant view will be near where it was intended. Swapping the order demonstrates such an outcome.