jquery/jquery-mobile — Issue #2918: Inset listview not enhanced correctly when initially hidden
Author: anpsince83
Created: 2011-11-02 21:49:47+00:00
State: open

I have a listview that is initially hidden on the page (it is part of a tabbed view), using pageshow I populate the listview with data from the server and then call `.listview("refresh")` on the list. Then once on the page, I click the tab that contains the listview to display it. This listview's corners are square and hasn't received the proper classes to make it have rounded corners. if I call `.listview("refresh")` again, after the listview is displayed, then it is enhanced as you would expect and the corners are rounded.

What's interesting is if I do not add any list items to the list and don't call `.listview("refresh")`, the listview is enhanced as you would expect.

Anyhow, here is a jsfiddle illustrating the issue: http://jsfiddle.net/anpsince83/b37hw/. I've been testing on Chrom and Mobile Safari, iOS 4.3 & 5.