The problem I'm encountering is that if an ArcGis map is sufficiently small in height (around 400px or so), when you click on a point near the top the popup does not fit in the view (pictured below):
Image of popup going outside the view

I was wondering if there was some way to have the map/view center around the popup, where it would look something like this:
Image of popup if it was centered

I tried looking at the documentation first but didn't see anything that looked like it would solve my problem.