panel/popover: Fix dodgy rx maths

This ensures the left-most and right-most positions for a tail look sane.