Fixed footer with dynamic listview problem
Hi there,
I have a listview on my page that I fill with data on the 'pagebeforecreate' event. I also have a fixed footer on the page. The problem is the footer gets pushed down and scrolls with the page when the page is done loading. The footer stays fixed to the bottom on all other pages that have dynamic data that is not a listview. So it just seems like its only the listview that is messing with the footer. If there are only a couple items in the listview the footer behaves as expected. Any suggestions?
HTML:
- <div id="myPage" data-role="page" data-theme="b">
- <div data-role="header" data-position="fixed" data-theme="b">
- Header text
- </div>
- <div data-role="content">
- <ul id="myList" data-role="listview" data-filter="true"
- data-inset="true" data-theme="b"></ul>
- </div>
- <div data-role="footer" data-position="fixed">
- Footer text
- </div>
-
- <script>
- $(document).on("pagebeforecreate", "#myPage", function(event) { var theData= window.localStorage.getItem("MYDATA"); $("#myList").empty().append(theData); });
- </script>
-
- </div>