Empower growth and innovation with the latest UI Design insights

Same mobile form: it isn't hidden by the keyboard on a colleague's Android phone, but on an iPhone it is — does that count as verified?

Nov 26, 2026 Read: 19

On the same mobile form, focusing the bottom input field is not blocked on a colleague's Android phone, but on an iPhone the keyboard covers half of it. This kind of "reproduces when you switch devices" situation is usually not because the page lacks adaptation, but because after the soft keyboard pops up, the visible area is compressed while the scroll container height and the position of the bottom fixed bar do not change accordingly.Per common 2026 mobile delivery practice: for forms with 6 or fewer fields that can be completed on a single screen, browser default scrolling is usually enough; only when there are 10+ fields, the form is placed in a modal or drawer, and there is also a fixed bottom action bar is it worth handling separately.For acceptance, do not just tap around on one device. Use at least one small-screen Android and one iPhone, and verify once separately for forms running inside an embedded WebView.

After the keyboard pops up, what actually changes on the page

The soft keyboard is not an ordinary overlay. On Android, a common approach is to shrink the visible area, and the page height changes accordingly; on iOS, it is more common for the keyboard to cover the page, and the window height does not necessarily change, but the visible area actually becomes smaller. When these two behaviors apply to the same form, the result is: some input fields are automatically scrolled into the visible area by the browser, while others remain under the keyboard.

Understanding this as "the visible area changed and the layout did not catch it" is closer to reality than understanding it as "the input field is in the wrong position."This also explains why the system browser passes but an embedded WebView in WeCom or DingTalk does not: different containers already differ in how they report keyboard height and when they trigger resize. For specific behavior, check the official documentation of the corresponding browser and WebView rather than concluding from memory of the previous device.

  • Symptom 1:After focusing the input field, the page does not move, and the lower half of the input field is covered by the keyboard.
  • Symptom 2:The page moves, but only the outer layer scrolls, and the input field in the modal is still under the keyboard.
  • Symptom 3:After the keyboard is dismissed, the page does not return to position, leaving a large blank area at the bottom, and users think the content has not finished loading.

First distinguish whether the browser is scrolling by default or the container is scrolling itself

Short forms usually do not need extra handling. When users enter information in the upper half of the page, the input field remains fully visible after the keyboard pops up, and the browser also scrolls the element into the visible area on focus. In this case, adding dynamic padding can instead make the page jump back and forth between keyboard pop-up and dismissal.

The problematic cases are custom scroll containers: the form is placed in a right-side drawer, modal, or an overflow:auto area, and scrolling happens in the inner layer while the outer page does not move. At this point, adding padding-bottom to body or the outer layer is like patching a wall that does not move.Having the user swipe up and checking whether the field can be scrolled into view is the dividing line between "not pushed into place" and "cannot scroll at all."

  • Can be scrolled into view:The scroll container is fine; what is missing is automatic positioning after focus.
  • Cannot be scrolled into view:The container height is hard-coded, or scrolling is locked by the outer layer. Fix the container first before discussing animation.
  • Scrolls into view and then bounces back:Most likely the height is recalculated by listening to resize, and when the keyboard height changes, the scroll position is reset.

Several common approaches and the cost of each

No single approach covers all devices. A common combination is to use default behavior as the baseline, then enhance based on container and form length. The following are experience ranges, not standard values. Change cost is roughly estimated in person-days and is comparable only within similar back-office form projects.

  • A Rely on browser default focus scrolling:Low change cost, suitable for forms with 6 or fewer fields that can be completed on one screen; the cost is unstable behavior inside modals and in some Android WebViews. A common rework point is "the system browser passes but the embedded container does not," and this kind of rework commonly takes 0.5–1 person-day.
  • B Add dynamic padding-bottom to the actual scroll container:Broader compatibility, suitable for forms with 8–15 fields where scrolling happens in the inner layer; the cost is that you need to obtain the keyboard height. Overestimating leaves extra blank space at the bottom, underestimating still leaves a gap, and you must remember to restore it after the keyboard is dismissed.
  • C Use visualViewport to adjust container height or positioning:Closer to the real visible area, suitable for projects with a fixed bottom bar and many device models; the cost is inconsistent support in older WebViews, so a fallback path is needed, and the number of test devices commonly increases by 30%–50%.
  • D Make the bottom action bar scroll with the content:Does not cover input fields, suitable for long forms focused on filling in with low submission frequency; the cost is that the submission entry is not always present, and users who want to save halfway through must scroll to the bottom first.

In experience, the soft keyboard commonly occupies 35%–45% of screen height, the bottom action bar height is commonly 48–56px, and the safe area needs another 8–16px. These numbers do not need to be hard-coded, but you should have the order of magnitude in mind during acceptance; otherwise "looks not covered" can easily become "covered by just a little." Use A as the baseline, B or C for enhancement, and D as a fallback, choosing according to the project schedule.

Delivery scene: rework is often not because no code was written, but because only one size was verified

A typical constraint is like this: a two-to-three-week schedule, compatibility required with an embedded WebView in WeCom and two Android device models, and the design file only provides a static 375-wide image with no keyboard pop-up state. The usual approach is not to start with a complex solution, but to first leave scrollable margin between the bottom fields and the bottom bar, then enhance with visualViewport, fall back to scroll-after-focus in older environments, and during integration testing walk through both a small-screen Android and an iPhone. Based on our habits in this kind of enterprise back-office delivery, this step is done during integration testing rather than waiting until QA raises it.

The cost should also be stated clearly: spending about 0.5–1 person-day on device and container checks buys you the ability to block a round of rework for "buttons cannot be tapped and input fields are covered" in advance. Conversely, signing off after tapping around only at the design file size or in a simulator commonly results in scattered device-specific fixes after launch, and only by the third round do you discover that the scroll container was never the same layer.

When to handle it and when not to add it

The scenarios suitable for handling are fairly specific: long mobile forms, forms placed in a modal or drawer, a fixed bottom action bar, and pages that need to run inside an embedded WebView. In these cases the visible area changes significantly, and users must input continuously, so without handling it, they can easily get stuck on the last field.

The cases where it is not necessary should also be stated clearly: forms with only three to five fields that can be completed on one screen, where the input field remains fully visible after focus, usually work well with browser default scrolling; purely display pages and pages where all input fields are in the upper half of the screen are also not worth adding a whole keyboard logic for.Not all mobile forms need keyboard adaptation. First check whether the input field is covered after focus; if it is not covered, adding logic may instead introduce layout jitter.This is also not the same thing as "wrong keyboard type"—that is the wrong input method popping up, whereas here the layout does not catch the keyboard after it pops up.

Pass line: three acceptance criteria you can directly check

  • Focus the bottom input field:The input field is fully visible, with an experience range of 8–12px between its lower edge and the upper edge of the keyboard, not flush against it.
  • Move continuously to the next item:Using the keyboard's next-item key or tapping the next field, you can scroll to each item one by one, and focus does not land under the keyboard.
  • After the keyboard is dismissed:The page returns to position, no large blank area remains at the bottom, and the fixed bar returns to its original position.

Counterexamples are also clear: tapping around only on a large meeting-room screen or in a simulator and signing off after seeing that the input field is not covered. Simulators do not necessarily reproduce real keyboard height, and large screens certainly do not. Add one verification each for landscape and small screens, and do not check only the system browser for embedded containers.

FAQ

When the keyboard pops up, the whole page jumps up a bit. Is that a wrong adaptation?

It commonly happens when the container height is set to 100vh and resize is listened to for recalculation, so the container changes whenever the keyboard height changes. Check the source of the height first, then decide whether to switch to visualViewport.

On iOS, listening to window resize has no effect. Is a timer the only option?

The iOS soft keyboard often does not trigger window resize, and a timer is not the first choice. First use visualViewport's resize and scroll, then fall back to scroll-after-focus in older environments.

When the bottom save button is pushed up by the keyboard, is that good or bad?

The button moving up makes it tappable, but it takes up input space. A common approach is to keep it in the document flow, or fix it only when the keyboard is dismissed, choosing based on form length and submission frequency.

For a form in a modal where the outer layer does not scroll and the inner layer scrolls, which layer should be adjusted?

Adjust the layer where scrolling actually happens. Adding padding to the outer layer has no effect on the inner layer. Confirm the scroll container before changing it; otherwise it is easy to patch the wrong place and waste a round of changes.


If you have an existing mobile form, first take one small-screen Android and one iPhone and walk through focusing the bottom field on each: the input field is fully visible, you can continue scrolling to the next item, and the layout returns to position after the keyboard is dismissed. Only after these three pass should you discuss visual details; forms with very few fields that are completed on one screen do not need extra keyboard logic, while those running in an embedded WebView need a separate verification.

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