Use container height if possible

If the scroller is inside a container with innerHeight set just use that instead of window height