I was glad to know that Android 2.2 supports the position: fixed CSS selector. I built a simple proof of concept:
http://kentbrewster.com/android-scroller/scroller.html
... which works like a charm. However, when I try to add the INPUT tag to my header, I run into a problem. In focus, every device that I have tried so far has cloned the INPUT tag, gives it an infinite Z-index and replicates it over the old tag. The clone is in the correct position, but most of its parent CSS (including, of course, position: fixed) is ignored. The cloned INPUT tag is the wrong size and shape, and when I look at the body of the page, it scrolls up and down the screen.
After that, fun appears on the screen. Sometimes the device forces the scrolling part of the body back, so that the cloned empty cell returns to the field of view; sometimes the keyboard goes away, although the visible field seems to remain in focus; sometimes the keyboard cannot be rejected, although the INPUT space is clearly blurred. Here is an example that you can run on your Android 2.2 to find out what happens:
http://kentbrewster.com/android-input-style-bug/
Entering stylization: the focus has not yet helped, and there are not many different brute-force attempts to listen to focus () and blur () using JavaScript and to do the right thing with the focus and keyboard.
Many thanks for your help,
- Kent
android html input css css-position
Kent Brewster Oct 11 '10 at 23:38 2010-10-11 23:38
source share