asp.net - jquery.mobile: orientation causes width error -


i have pages based upon jquery.mobile; when rotate device (wp8/ie10 & ipad2) page re-renders incorrect width.

on ipad2, same occurs if activate keyboard clicking in textbox , clicking out of again.

my page code (as rendered):

<!doctype html> <html xmlns="http://www.w3.org/1999/xhtml"> <head>   <meta charset="utf-8" />   <meta name="author" content="martin robins" />   <title>do stuff</title>   <link href="../content/jquery.mobile.structure-1.3.1.css" rel="stylesheet" />   <link href="../content/jquery.mobile-1.3.1.css" rel="stylesheet" />   <link href="../content/jquery.mobile.theme-1.3.1.css" rel="stylesheet" /> </head> <body>   <form method="post" action="./" id="form">     <script src="../scripts/jquery-1.9.1.js" type="text/javascript"></script>     <script src="../scripts/jquery.mobile-1.3.1.js" type="text/javascript"></script>     <script type="text/javascript">       $(document).bind("mobileinit", function () {         $.mobile.ajaxenabled = false;         $.mobile.linkbindingenabled = false;       });     </script>      <div data-role="page" id="logon" data-theme="c">       <div data-role="header" data-position="fixed">         <h1>select location</h1>       </div>       <div data-role="content">          <div data-role="fieldcontain">           <fieldset data-role="controlgroup" data-type="horizontal">             <legend>title</legend>             <input name="ctl00$formcontentplaceholder$prefix" type="text" id="formcontentplaceholder_prefix" style="text-transform: capitalize;" />           </fieldset>         </div>         <div data-role="fieldcontain">           <fieldset data-role="controlgroup" data-type="horizontal">             <legend>forenames</legend>             <input name="ctl00$formcontentplaceholder$forenames" type="text" vcard_name="vcard.firstname" id="formcontentplaceholder_forenames" style="text-transform: capitalize;" />           </fieldset>         </div>                         </div>     </div>   </form> </body> </html> 

note: content has been left out. using asp.net there asp.net ajax scripts being loaded.

any suggestions?

may think meta tag issue, please add following meta tag , check if works.

<meta name="viewport" content="width=device-width"> 

Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -