Closed Bug 935901 Opened 12 years ago Closed 11 years ago

Unexpected gap above virtual keyboard

Categories

(Firefox OS Graveyard :: Gaia::System::Input Mgmt, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: felix.klee, Unassigned)

Details

Attachments

(2 files)

Attached image Annotated screenshot
User Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36 Steps to reproduce: 1. Loaded: * index.html: <!DOCTYPE html> <head> <meta name="viewport" content="width=device-width, user-scalable=no"> <title>Test</title> </head> <body style="background: gray"> <script src="index.js"></script> </body> * index.js: (function () { 'use strict'; function redrawAfterDelay() { setTimeout(function () { var el = document.createElement('input'); document.body.innerHTML = ''; document.body.appendChild(el); el.value = window.innerHeight; el.style.position = 'absolute'; el.style.top = (0.8 * window.innerHeight) + 'px'; el.focus(); }, 100); } window.addEventListener('resize', redrawAfterDelay); redrawAfterDelay(); }()); 2. Tapped on the input field, tapped next to it, tapped again on it, reloaded, etc. Hardware: Geeksphone Keon Software: latest Firefox OS 1.3 nighlty, <http://downloads.geeksphone.com/keon/master/nightly-images-keon-master-2013-11-01.Gecko-d258654.Gaia-299e7ff.zip> Actual results: When tapping around, at some point the screen layout breaks. Sometimes, I get an unexpected gap above the virtual keyboard. Expected results: There should be no gap between the virtual keyboard and the page.
Thanks for the report. There might be a timing issue with re-focusing after a blur on several occasions (as a blur triggers a resize triggers a |focus| call, triggers a resize, triggers a new focus call.
Status: UNCONFIRMED → NEW
Ever confirmed: true
I will try to see if this still reproducible on latest master.
Component: Gaia::Keyboard → Gaia::System::Input Mgmt
Flags: needinfo?(timdream)
I can no longer reproduce this bug on master.
Flags: needinfo?(timdream)
PS I loaded the HTML into Template app.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: