Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android OS Keyboard moves Website Contents Up?

Tags:

html

android

css

I have a mobile website with 4 elements that are absolutely positioned inside a 100% height div and when I click on the url bar the height on the div shrinks and pushes everything up.

Is there anyway to fix this issue? Or prevent it from changing the 100%? Or do I need to get the screen size using JS and fix it that way? As it works fine if I set it to an exact amount.

like image 283
Steven Avatar asked Mar 01 '12 19:03

Steven


1 Answers

The android browser resizes the window when the keyboard is opened, there is no solution to prevent that.

like image 166
ChristopheCVB Avatar answered Oct 06 '22 00:10

ChristopheCVB