How do i reposition a popup after i change its content?

How do i reposition a popup after i change its content?

Hi, I'm using JQM 1.2.0. I have a popup with a listview and a reload button. The popup is centered in the window. When the reload button in the popup is clicked, the listview content is being replaced and the new content might be wider/narrower or taller/shorter. For this reason i need the framework to recalculate the width/height and position of the popup in the screen. How do i do it? I don't see a method that the popup widget exposes for this.

Thanks!