Get scroll position into account when counting offsets
Support for container measurements