Empower growth and innovation with the latest Mobile App insights

Keyboard covers the bottom 'Submit order' button when typing in the notes field—is the phone screen too small, or does this page lack keyboard avoidance?

Oct 20, 2026 Read: 60

Conclusion first: When the keyboard pops up and covers the bottom 'Submit order' button, in most cases it is not because the phone screen is too small, but because this page has not implemented keyboard avoidance—at least one of three layers is misaligned: the system window adjustment mode, the page scroll container, and the bottom safe area. It appears only when three conditions hold at the same time: an input field near the bottom, the keyboard open, and a relatively small screen or enlarged system font. That is why acceptance testing often treats it as an occasional issue. Under 2026 delivery practice, this is an interactivity defect: the button cannot be tapped, the user is blocked at the final step, and the content filled in earlier is wasted.

What actually happens on the page when the keyboard pops up

iOS and Android handle this differently. The iOS keyboard floats above the app window as a separate window and by default does not change the view size, so page content is directly covered. On Android, the window soft input mode determines whether the window is resized, panned, or left unchanged; choosing the wrong mode leads to two extremes: the whole page, including the title bar, is pushed off-screen, or the page does not change at all and the button remains buried.

Even if the system resizes the window, whether the user can scroll to the button still depends on the container. Many pages place content in containers with fixed heights or full-screen units; when the window becomes shorter, the content is clipped rather than made scrollable—what users see is the button hiding behind the keyboard and not coming up no matter how they drag. This is also an important reason why some form pages in the same app work and others do not.

  • System layer: Whether the window is resized, panned, or unchanged determines whether there is still usable space on the page.
  • Container layer: Whether the content can scroll and whether the scroll area height is fixed determines whether the button can be reached.
  • Fixed layer: Whether the persistent bottom button moves up with the keyboard determines whether the user can see it.

First distinguish: is the screen small, or did this page not implement avoidance?

These two cases require completely different fixes: the former needs space reallocation, such as reducing spacing, collapsing secondary information, or moving the button inline; the latter needs an avoidance layer added. The judgment should not rely on guessing but on a few reproducible actions.

  1. Try the same build on a large-screen phone, a tablet, and in landscape. If only small screens have the problem, insufficient space budget is more likely a factor.
  2. Set the system font to a larger size and try again. If it is fine at normal font size but gets covered once enlarged, the height is usually calculated in fixed pixels.
  3. Connect a Bluetooth keyboard or use a stylus to bring up the keyboard. If the layout is normal when the keyboard is not shown and breaks as soon as it appears, it is basically safe to conclude that this page does not listen for the keyboard.
  4. Distinguish native pages from embedded H5. If only H5 has the problem, the investigation should move to WebView and viewport rather than native layout.

From experience, if only individual pages have the problem, it is mostly a page-level implementation difference, and fixing that page is enough. If all form pages have the problem, it is usually a shell-layer or global configuration issue. At that point, patching page by page may create more inconsistency, and every new form page will hit the same problem again.

The four-step check: measure, scroll, follow, reset

This sequence is organized according to project delivery practice, and the four steps are ordered: first know how much space the keyboard occupies, then ensure the focused field is visible, then handle persistent elements, and finally check the reset. If the order is reversed, rework will go back and forth—for example, the button is fixed but the input field is still covered.

  1. Measure: Obtain the keyboard height and animation duration. On iOS, convert from the end position in keyboard notifications; on Android, take it from the IME region and compare it with the bottom safe area, using the larger value to avoid extra blank space from double stacking.
  2. Scroll: After an input field receives focus, ensure it falls completely within the visible area; on list pages, also ensure the row being filled is not half-covered by the keyboard. The pass line is that the input field is fully visible within a few hundred milliseconds after focus.
  3. Follow: The fixed bottom button should either move up with the keyboard or switch to an inline button when the keyboard appears; either is acceptable, but they must not be mixed, otherwise the button position will jump back and forth.
  4. Reset: After the keyboard is dismissed, spacing, scroll position, and page height should all return to their initial state. This is the most commonly missed item; the symptom is that the keyboard is closed but a blank area remains at the bottom of the page.

In an order-placement project with a tight schedule, a common situation is: the client requires the 'Submit order' button to stay at the bottom; the early implementation only used fixed positioning; and during acceptance, the business side found problems in three places—address, notes, and invoice—on a small-screen phone. Later, the bottom button was changed to follow the IME region upward and the content area was made scrollable. The rework was roughly in the experience range of 1 to 3 person-days; the cost was not mainly the code itself, but that all three pages had to go through scroll-position regression again, and QA had to add another round covering large fonts, landscape, and external keyboards.

Three common fixes: where the time and follow-up cost differ

Even when the goal is the same—'make the button visible'—the implementation approach differs, and maintenance cost later varies quite a bit. The following are experience ranges for common projects; actual values vary with the number of pages and shell complexity.

  • Only add bottom padding to the page: Small change, often around half a day; suitable for simple page structures without persistent buttons. The drawback is that it fails with modals, H5, and floating keyboards—it is a symptomatic fix.
  • Page-level keyboard listening + scrollable container: Typical range 1 to 3 person-days, and each form flow must be handled separately. The advantage is that changes are locally controllable; the disadvantage is that with many pages, implementations easily become inconsistent.
  • Unified keyboard-region handling at the shell layer: Typical range 3 to 8 person-days, done once and basically no longer a concern for new pages. The cost is a large impact surface and full regression, including pages that originally worked.

In 2026 projects, a relatively safe order is: first determine whether it is an individual-page issue or a global issue; for individual pages, use the second approach; for global issues, then change the shell layer. Skipping the judgment and going straight to the third approach often results in new problems on pages that were originally fine.

Do not use the same implementation for iOS and Android

The differences between the two platforms center on whether the keyboard changes your layout; copying the same code often works on only one side.

  • Default behavior: iOS does not change the layout by default; you must listen for keyboard changes yourself. Android is determined by the window mode; after newer versions enable edge-to-edge display, the original resize-mode behavior changes, and it usually needs to be handled together with the IME region—check the official documentation for specifics.
  • Height source: On iOS, convert from the end position in keyboard notifications, and be careful to convert screen coordinates to view coordinates. On Android, take the IME region; do not hard-calculate it as screen height minus window height.
  • Third-party IMEs and candidate bars: Different IMEs have different keyboard heights and candidate-bar heights; hard-coding a fixed value easily fails on small-screen phones.
  • Tablets and floating keyboards: Tablet keyboards may not sit at the bottom and may not resize the window. In that case, following the bottom upward can instead misalign the page; scrolling the input field into the visible area is more stable.

Several recurring pitfalls

The following counterexamples are common in acceptance and online feedback. Their common point is treating the keyboard only as the case of 'the page becoming shorter'.

  • Using full-screen height units to fill the page; after the keyboard appears, the container height does not change, and the button is clipped off-screen.
  • On Android, directly choosing pan mode; the whole page, including the title bar, is pushed up, and users cannot clearly tell which page they are filling in.
  • Only adding bottom padding to the page without expanding the bottom range of the scroll area; when scrolled to the bottom, the button is still covered.
  • Embedded H5 relies on window size changes to detect the keyboard; with keyboard modes that do not change the window size, it does not trigger at all, and viewport-related APIs usually need to be used instead.

The pass criteria can be written directly into the acceptance checklist: after any input field is focused, it is fully visible; the page can scroll to the last clickable button; after the keyboard is dismissed, the layout resets with no leftover blank space. Only when all three hold is it considered passed; missing any one will turn into complaints from real users.

Which pages deserve serious work, and which only need to avoid blocking

Pages that need careful avoidance are usually input-intensive pages with persistent action buttons at the bottom: address entry, order notes, amount entry, chat input boxes, and H5 forms with submit buttons. Their common point is that users must complete actions while the keyboard is open; if the button cannot be tapped, the flow breaks.

There are also cases that do not need major changes: pure display pages and full-screen video pages have no input to begin with; if the entire flow has only one search box located in the upper part of the page and the page itself scrolls normally, simple handling is enough—there is no need for a complete IME-region solution; for projects already in maintenance with only occasional issues on a few old models, observe on a small scale by model first, then decide whether a full refactor is needed.

The boundary can be remembered in one sentence: For operations that require the keyboard to be open to complete, avoidance must be done correctly; for pages where the keyboard only appears incidentally, it is enough not to block content.

FAQ

When the keyboard comes up, the whole page moves up and the title bar is pushed off-screen. Do we just have to live with it?

No. The whole page moving up is usually caused by using pan mode or by the container itself not being scrollable. The fix is to make the content area scrollable and adjust only the bottom area, while keeping the title bar positioned in place.

The input field is inside a modal, and when the keyboard appears the modal is misaligned. Can we reuse the page-level handling?

Usually not. A modal is an independent overlay and does not scroll with the page, so the covered height needs to be calculated separately based on its own position. A common approach is to make the modal content scrollable and avoid hard-coding the bottom button.

The H5 form works in a mobile browser but is covered when embedded in the app. Is it because the front end was not written well?

It is commonly a missing agreement between the shell and the page: the WebView does not leave space for the IME, and the page uses full-screen height. Usually both sides need small changes: the shell gives up height, and the page switches to viewport units.

How should the pass line be defined at delivery for this kind of issue? Is a verbal note enough?

No. It is recommended to write it into the acceptance checklist: the input field is visible after focus, the page can scroll to the last button, and the layout resets after the keyboard is dismissed. Sign off only after all three pass; this will reduce later disputes significantly.


If you are currently stuck on this kind of issue, it is advisable to first reproduce it on the same small-screen phone using the four steps—measure, scroll, follow, reset—and then decide whether to change the page or the shell, so that changing both ends at the same time does not make localization harder. In mobile projects, Xiyue Company usually writes these items into the pre-test self-check list, because the issue almost never appears on a large-screen development machine and only shows up on the business side's mid-to-low-end phone. The boundary should also be stated clearly: pure display pages do not need this investment, maintenance-phase projects should prioritize small-scale validation, and a full refactor is not recommended for a single occasional scenario.

Interested in this topic?
10-year tech team — reference proposal within 24 hours
Obtain Proposal
Are you ready?
Then reach out to us!
+86-13370032918
Discover more services, feel free to contact us anytime.
Please fill in your requirements
What services would you like us to provide for you?
Your Budget
ct.
Our WeChat
Professional technical solutions
Phone
+86-13370032918 (Manager Jin)
The phone is busy or unavailable; feel free to add me on WeChat.
E-mail
349077570@qq.com
Submitted successfully
Thank you for your trust. We will contact you soon!
Recommended projects for you