I have a problem after upgrading to iOS 6, which turns me on.
It looks like at any time I have the "placeholder" attribute in the input field, and when I turn from "Portrait to landscape" and "Back to portrait", the page shifts some pixels on the left side, causing a horizontal bar.
After much research, I came to the conclusion that this should be related to the meta-view screen, because every time I use content = "width = device-width" everything works fine.
PS Yes, I really need to have a percentage input width in order to have a fluid design :)
Here is an example of recreating a problem. Thanks...
<html> <head> <title>test</title> <meta content="width=device-width, initial-scale=1, maximum-scale=1" name="viewport"/> </head> <body> <div style="width:100%;background-color:red"> <input id="testInput" placeholder="test" style="width:90%;" /> </div> </body> </html>
alexd
source share