I am working on a jquery mobile application that uses phonegap. In the application, I dynamically load the listview onto a page with more items than shown on one screen. When viewed in an Android emulator (Android 2.2), the list view is clearly visible, and I can scroll or use the buttons to scroll down, but the vertical scroll bar is not visible. Do I have to do something special for the vertical scrollbar?
When I open the static version of the page in the browser (Firefox), a scrollbar appears, but the same static page loaded into the application on the Android emulator does not show the scrollbar (i.e. it seems that the behavior is consistent and has nothing to do with the dynamic nature of the loading list).
I am using jquery 1.7.1, JQM 1.1.1, phonegap 2.0 (all the latest versions).
Here is the page code:
<!DOCTYPE HTML> <html> <head> <title>Conference List</title> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="stylesheet" href="common/jquery.mobile-1.1.1.min.css" /> <script type="text/javascript" charset="utf-8" src="common/jquery-1.7.1.min.js"></script> <script type="text/javascript" charset="utf-8" src="common/jquery.mobile-1.1.1.min.js"></script> <script type="text/javascript" charset="utf-8" src="common/cordova-2.0.0.js"></script> </head> <body> <div id="conf-list" data-role="page"> <div data-role="header"> <a href="#" class="ui-btn-left" data-icon="delete" onclick="exit()">Exit</a> <a href="#" class="ui-btn-right" data-icon="refresh" onclick="downloadConfList(confFilePath)">Refresh</a> <span class="ui-title" /> </div> <div data-role="content"> <ul data-role='listview' data-inset='true'> <li data-role='list-divider'>Available Conferences:</li> <li data-icon='false'> <a href='javascript:openConference(2010041801)'> <h4>Conference A1 2010</h4> From 2010-04-18 to 2010-04-20<br /> Orlando, FL, USA </a> </li> <li data-icon='false'> <a href='javascript:openConference(2010110701)'> <h4>Conference A2 2010</h4> From 2010-11-07 to 2010-11-10<br /> Austin, TX, USA </a> </li> <li data-icon='false'> <a href='javascript:openConference(2011111301)'> <h4>Conference A3 2011</h4> From 2011-11-13 to 2011-11-16<br /> Charlotte, NC, USA </a> </li> <li data-icon='false'> <a href='javascript:openConference(2012041501)'> <h4>Conference A4 2012</h4> From 2012-04-15 to 2012-04-17<br /> Huntington Beach, CA, USA </a> </li> <li data-icon='false'> <a href='javascript:openConference(2012101401)'> <h4>Conference A5 2012</h4> From 2012-10-14 to 2012-10-17<br /> Phoenix, AZ, USA </a> </li> </ul> </div> </div> </body> </html>
source share