Files
ionic-framework/test/inputs.html
Andy Joslin 9327ac71c7 fix(android): when keyboard comes up, ensure input is in view
This requires us to set fullscreen="false" in our cordova apps.

Uses the resize event to determine when the keyboard has been shown,
then broadcasts an event from the activeElement: 'scrollChildIntoView',
which is caught by the nearest parent scrollView.  The scrollView will
then see if that element is within the new device's height (since the
keyboard resizes the screen), and if not scroll it into view.

Additionally, when the keyboard resizes the screen we add a
`.hide-footer` class to the body, which will hide tabbars and footer
bars while the keyboard is opened.

For now, this is android only.

Closes #314.
2014-02-12 09:45:35 -05:00

85 lines
3.0 KiB
HTML

<html ng-app="navTest">
<head>
<meta charset="utf-8">
<title>List</title>
<!-- Sets initial viewport load and disables zooming -->
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" href="lib/css/ionic.css">
<script src="lib/js/ionic.bundle.js"></script>
</head>
<body>
<pane>
<header class="bar bar-header bar-positive">
<div class="buttons">
<button ng-click="toggleDelete()" class="button button-clear">{{ editBtnText }}</button>
</div>
<h1 class="title">List Tests</h1>
<div class="buttons">
<button ng-click="toggleReorder()" class="button button-clear">{{ reorderBtnText }}</button>
</div>
</header>
<footer class="bar bar-footer bar-positive">
<h1 class="title">Footer time!</h1>
</footer>
<content has-header="true" has-footer="true">
<input type="text" placeholder="text me!">
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<input type="text" placeholder="text me!">
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<input type="text" placeholder="text me!">
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<input type="text" placeholder="text me!">
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<input type="text" placeholder="text me!">
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<input type="text" placeholder="text me!">
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<input type="text" placeholder="text me!">
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<input type="text" placeholder="text me!">
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<p style="margin: 10px;">...</p>
<input type="text" placeholder="text me!">
</content>
</pane>
</body>
</html>