Ensure that origin is assigned on popupdisplayed event.