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 8738789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:48:12+00:00 2026-06-13T10:48:12+00:00

I have this meta tag: <meta name=viewport content=width=768, minimum-scale=1.0, user-scalable=no /> And I am

  • 0

I have this meta tag:

<meta name="viewport" content="width=768, minimum-scale=1.0, user-scalable=no" />

And I am setting scalesPageToFit:

webView.scalesPageToFit = YES;

At first this works correctly. When I go from portrait to landscape it zooms in so the width of the device is always 768px. I can go back and forth with no issues (portrait <-> landscape).

As soon as I activate the virtual keyboard, whether it be through a contentEditable or text area, it stops working completely, even after I dismiss the keyboard.

Is this a bug in the UIWebView? Is there anything else I need to do to make this work? Is there a work-around I can use? The width, no matter the orientation, has to be 768px.

  • 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-06-13T10:48:14+00:00Added an answer on June 13, 2026 at 10:48 am

    Seems to be a bug with Apple’s private class UIDocumentView. For what ever reason viewportConfigurationsDidChange gets stuck on a zoom scale after the keyboard is activated, which is set by calling _setDocumentScale. When it’s supposed to change to 1.333, for example, it gets stuck on 1.0.

    It’s “fixable” by writing a category for UIWebDocumentView, which is a subclass of UIDocumentView that doesn’t implement these methods (so you can call the super’s).

    Despite my best efforts I couldn’t find a way to fix this using the public API. I tried messing with the UIScrollView’s zoom level, but I could never get that to work correctly. The content would get shifted, and other weird things would happen. Even tried doing it with JavaScript.

    So the only way to fix it is through category on private classes.

    This would never be approved in the app store.

    So until Apple fixes this, SOL.

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

Sidebar

Related Questions

I use this meta-tag <meta name=viewport content=width=device-width, initial-scale=1.0, user-scalable=no> And I have a text
I have this file: geoView.html.erb <meta name=viewport content=initial-scale=1.0, user-scalable=no /> <%= stylesheet_link_tag 'application' %>
I am using this viewport tag: <meta name=viewport content=width=device-width, initial-scale=1.0> However, the iPhone/iPad/Android devices
I have a website using the meta tag <meta name=viewport content=width=device-width, target-densityDpi=device-dpi> , Javascript
I have a standard meta tag like this: <meta name=desc content=test/> That I want
Currently I have this code: <?php echo '<meta name=robots content=noindex>'; $arr = json_decode(file_get_contents(http://media1.clubpenguin.com/play/en/web_service/game_configs/ paper_items.json),true);
I have this Haml view: !!! strict %html{:xmlns => http://www.w3.org/1999/xhtml} %head %meta{:content => text/html;
I have this code to remove an existing meta tag to which i dont
I have this error when trying to generate the meta model with JOOQ: org.jooq.exception.DataAccessException:
I have this simple model: class Tag(models.Model): title = models.SlugField() created = models.datetime def

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.