Deferred scale related calculations to the end of run loop, so give time for other intermediary calculations
Fixed excessively high scroll offset values in test