Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6581933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:12:58+00:00 2026-05-25T16:12:58+00:00

I am experimenting with jquery mobile (beta 3). Everthing works fine when you load

  • 0

I am experimenting with jquery mobile (beta 3). Everthing works fine when you load your application. However when you rotate your iPhone to horizontal, the layout doesn’t adjust itself correctly.

Same problem can be observed on http://jquerymobile.com/demos/1.0b3/

Does anyone have a solution?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T16:12:59+00:00Added an answer on May 25, 2026 at 4:12 pm

    If zoom isn’t needed <meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1"> is the least hackish.

    If you want to keep zoom, try this solution.

    var viewport = $('meta[name="viewport"]');
    var nua = navigator.userAgent;
    
    if ((nua.match(/iPad/i)) || (nua.match(/iPhone/i)) || (nua.match(/iPod/i))) {
      viewport.attr('content', 'width=device-width, minimum-scale=1.0, maximum-scale=1.0');
      $('body')[0].addEventListener("gesturestart", gestureStart, false);
    }
    
    function gestureStart() {
      viewport.attr('content', 'width=device-width, minimum-scale=0.25, maximum-scale=1.6');
    }
    

    FYI: this is a known issue, see jQM docs

    There is a minor issue in iOS that doesn’t properly set the width when changing orientations with these viewport settings, but this will hopefully be fixed a a future release. You can set other viewport values to disable zooming if required since this is part of your page content, not the library.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm experimenting with jQuery Mobile and have run into a problem on my Windows
I'm experimenting with Modernizer.load. I have this: Modernizr.load([ { load : ['/js/jquery-1.6.1.js', '/js/jquery.tools.min.js', '/js/myscript.js']
I'm experimenting with a jQuery Mobile app that will eventually end up as a
I've been experimenting with jQuery Mobile. I am trying to implement the following When
I'm trying to make a mobile application using jQuery Mobile and Phonegap. But first
I'm experimenting with jquery and svg, I make up my path but now I
I'm experimenting with the Tiny MCE editor. We also use jQuery, and I noticed
I'm experimenting with TreeView plug-in located here: http://docs.jquery.com/Plugins/Treeview One of the options it has
Influenced by jQuery, I'm experimenting with method chaining in javascript. I constructed a wrapper
I am using jQuery .load() to load a php-file. This php-file echos out a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.