Popup: Pass placement through "popupbeforeposition" to allow handlers to modify the popup positioning