Changed popup position calculation.

Now includes scroll offset.