FIX: popover disappeared if selection was on top of the screen.
JSLint satisfied
Merge branch 'bugs'