Fixed footer causes extra scrolling
in jQuery Mobile
•
11 years ago
When the fixed footer was added to the page code below, a vertical scrollbar comes up in Chrome desktop equal to about the height of the footer. In my mobile app on Android, I also end up with some vertical drag space where there should be none (all vertical content fits on screen). Is there a way to avoid that?
- <!DOCTYPE HTML>
- <html>
- <head>
- <link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0-rc.1/jquery.mobile-1.1.0-rc.1.min.css" />
- <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
- <script src="http://code.jquery.com/mobile/1.1.0-rc.1/jquery.mobile-1.1.0-rc.1.min.js"></script>
- </head>
- <body>
- <div data-role="page">
- <div data-role="header">
- Header
- </div>
- <div data-role="content">
- Content
- </div> <!-- /content -->
- <div data-role="footer" class="footer-docs" data-theme="a" data-position="fixed" data-tap-toggle="false">
- <h1>Fixed Footer</h1>
- </div>
- </div> <!-- /page -->
- </body>
- </html>
2