fix #802: In case 'add media button' is not on screen, center the popup in the view.