Added missing changes.

This is the code that actually determines the location of the popup

issue A24Group/Triage#3518