Use "top" prop from parent var, instead of window

As was suggested by @gibson042 and add a comment about defaultView prop