question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android soft keyboard hides the input field in bottom screen

See original GitHub issue

** Ionic v2 **

Android soft keyboard hides the input filed in the bottom of the screen. Need to scroll to bottom manually. But when I commented the app.bundle.js like below, It works fine and last input field automatically pulled up when I focus it.

<body>

  <!-- this Ionic's root component and where the app will load -->
  <!--<ion-app></ion-app>-->

  <div style="height:40px"><input type="text"/></div>
  <div style="height:40px"><input type="text"/></div>
  <div style="height:40px"><input type="text"/></div>
  <div style="height:40px"><input type="text"/></div>
  <div style="height:40px"><input type="text"/></div>
  <div style="height:40px"><input type="text"/></div>
  <div style="height:40px"><input type="text"/></div>
  <div style="height:40px"><input type="text"/></div>
  <div style="height:40px"><input type="text"/></div>
  <div style="height:40px"><input type="text"/></div>
  <div style="height:40px"><input type="text"/></div>
  <div style="height:40px"><input type="text"/></div>
  <div style="height:40px"><input type="text"/></div>

  <script src="cordova.js"></script>
  <!--<script src="build/js/app.bundle.js"></script>-->
</body>

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:21 (5 by maintainers)

github_iconTop GitHub Comments

6reactions
JumBaycommented, May 10, 2016

I can confirm the issue. When an input get focused, the keyboard shows up and hide a part of the view. If your input is part of it, the user will have to scroll to it as you can see:

ionic_bug_input

The best behavior should be like natives app do, i.e. move the entire page like that:

ionic_normal_keyboard_behavior

1reaction
mpalandcommented, Jun 10, 2016

+1 Seeing the same issue on Moto G2 Android 6.0 device. Tried different things (see my forum post) but no luck. Virtual keyboard seems a bugging issue on both ios and Android.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android Keyboard hides EditText - Stack Overflow
Here is simple solution for Android EditText issue of hiding behind SoftKeypad. Use the code in AndroidManifest.xml file of ...
Read more >
Handle input method visibility | Android Developers
When input focus moves in or out of an editable text field, Android shows or hides the input method—such as the on-screen keyboard—as ......
Read more >
Keyboard hides form fields on mobile device, when user ...
Hi ,. We have input form which has input fields, when i click on them and keyboard get showed on mobile device, to...
Read more >
Android keyboard hides input field - Backendless Support
This means that if the input field is in the lower half of the screen, the keyboard actually hides the input field.
Read more >
Android soft keyboard hides the input field in bottom screen
Android soft keyboard hides the input filed in the bottom of the screen. Need to scroll to bottom manually. But when I commented...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found