Popover position adjustments should consider the document scroll position

Everything below the ~~fold~~ gets its position adjusted to top (from bottom) because it is calculated as past the screen.

This fixes it by accounting for the scroll position of the document.