How do I update the position of a jQuery Mobile global popup?
问题 I have a jQuery Mobile global popup, whose contents are generated dynamically. So by default it's empty. I'm listening for the beforeposition event to capture the popup being opened. Then I load a config file/content file, generate the content and append it to the popup. However by the time I'm appending, JQM is already done calculating the position of the popup so it will be misplaced on the screen. Here is what I'm doing: $(document).find("#global-popup") .on("popupbeforeposition", function