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)
Firefox OS Graveyard
Gaia::System::Input Mgmt
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: felix.klee, Unassigned)
Details
Attachments
(2 files)
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.
Comment 1•12 years ago
|
||
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.
Updated•12 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 2•11 years ago
|
||
I will try to see if this still reproducible on latest master.
Component: Gaia::Keyboard → Gaia::System::Input Mgmt
Flags: needinfo?(timdream)
Comment 4•11 years ago
|
||
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.
Description
•