Wednesday, 29 February 2012

Android browser jumping up and down!

No, you haven't gone crazy. Your beloved app is jumping up and down on android when you type something on the keyboard! ..... I had the problem 2 weeks ago when I was dealing with an input field in an absolute div. The problem came from another div in the page (fixed)  ... Believe me or not, this a z-index related problem. The rule seems to be: a fixed div have to have a higher z-index than ANY absolute div in the page.

So, find out the higher z-index of the page and set a higher number to the z-index of your fixed divs. This should stop the screen from jumping around for no reason.



No comments:

Post a Comment