jQuery Mobile update popup layout after content change

Recently we have a wordpress project with jQuery Mobile is the core framework to build the client theme. I meet the problem with popup with content change, so in the first popup show we only have the limited content text but then the content need to show ‘s much more than the first show, and the layout become too bad.

content_height

 

But if we resize the windows, the popup display well again, that ‘s why I show you here to get the solution to make the popup show beautiful even though user don’t resize the windows. Here is the tips:

And to make sure you call this line

Then everything should work well again :).

3 comments

  1. You save my day to solve the crazy mobile screen, thanks man.

  2. It must save me at least 2 days working. Thanks man.

  3. It doesn’t work for me here. What wrong with it? It doesn’t change anything???

Leave a Reply

Your email address will not be published. Required fields are marked *

*

CDN by MaxCDN