CSS Media query landscape android soft keyboard
After some searching I came up with this :
@media screen and (min-aspect-ratio: 13/9){ } // landscape
@media screen and (max-aspect-ratio: 13/9){ } // portrait
instead of
@media (orientation : landscape){ }
@media (orientation : portrait){ }
So if you are in the same boat as me I would advise you to just go with this, so you spare yourself the headache.
There is this good article to solve this problem.
But sometimes 13/9 is not enough. @media screen and (min-aspect-ratio: 14/9){ } // landscape
Becareful, if you increase it to 16/9, iphone5 don't recognize the landscape.