IPhone UIWebView width does not fit after zooming + orientation change

I created a bare bones iPhone/iPad app with a UIWebView (Scales Page to Fit = YES, shouldAutorotateToInterfaceOrientation = YES) and loaded a webpage, e.g. http://stackoverflow.com/
- (void)viewDidLoad {
[super viewDidLoad];
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://stackoverflow.com/"]];
[webview loadRequest:request];
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;
The web page fits the width nicely. Rotate the device, the webpage continues to fit the width nicely. Good.
Incorrect: Zoom into the page and zoom out. Now rotating the device shows UIWebView in a weird width in one of the orientation (if u zoom in+out landscape, the portrait width becomes weird, vice versa). This behavior is fixed only after you navigate to another page (or [webview reload]).
Correct: Load the same URL in *Mobile Safari* on the same device. Rotating works & the width always fits properly, regardless of the zooming interaction.
Is this a UIWebView bug (probably not)? Or is there something that needs to be done to make things "just work" like in Mobile Safari?
This behavior exists on iPhone and iPad

Refer :
http://social.technet.microsoft.com/Forums/windows/en-US/2b0ba279-0ded-49b2-b003-713a65e3d645/vertical-taskbar-width-resets?forum=w7itproui
Arnav Sharma | Facebook |
Twitter Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members
reading the thread.

Similar Messages

  • Hi, my iphone 5 charger does not fit in the hole iphone .. it seems as if something inside the iphone had moved because I see that the charger works perfect in another iphone 5

    Hi, my iphone 5 charger does not fit in the hole iphone .. it seems as if something inside the iphone had moved because I see that the charger works perfect in another iphone 5

    Clean the lint or grit out of it with canned air or a toothpick.

  • I'm from Brazil, I have an iphone 3gs that does not turn over, would you change in any app store or any authorized?I'm from Brazil, I have an iphone 3gs that does not turn over, would you change in any app store or any authorized?

    I'm from Brazil, I have an iphone 3gs that does not turn over, would you change in any app store or any authorized?

    Have a look at your service options here: Apple - Support - Service Answer Center
    Out-of-Warranty Service
    If you own an iPhone that is ineligible for warranty service but is eligible for Out-of-Warranty (OOW) Service, Apple will service your iPhone for the Out-of-Warranty Service Fee listed below.
    iPhone Model
    Out-of-Warranty Service
    iPhone 5
    R$ 649
    iPhone 4S
    R$ 549
    iPhone 4, iPhone 3GS,
    iPhone 3G
    R$ 449
    Prices applicable for Sao Paulo. Prices may vary by state due to local ICMS tax. All fees are in Brazilian reais and include tax.
    Since your phone is out of warranty, you'll have to pay for your device being replaced.

  • IPhone 3G - 3G Does not work after upgrading to 4.2.1

    Once again Apple has screwed something up. Upgraded to 4.2.1 on Friday and now my 3G reception does not work. I've factory restored and still no good. Whats up with the quality control these days? Seems as if every software update across iOS and Mac OS/X has at least 1 major flaw.
    Does Apple read these posts?

    my problem is more curious i use 4.2.1. on a 3g iphone which is "open" from italy
    my network is kpn/simyo
    4.2 everything worked... no tethering offered
    4.2.1. most apps including safari weather etc are not able to use the data network,but the NS dutch railways app is able to use the data connection
    and suddenly i get offered tethering in the network settings
    But the screen for manually set your network settings is disappaered, so as my provider cant send setup files to my phone makes it impossible to manually setup a phone network, which is strange for an "open" never been locked iphone
    Will see what happens the next day as there are more buggs reported about network and 4.2.1.
    WIFI works perfectly....
    Was planning to buy an iphone 4 but if apple cant guarantee the use of what you buy..... by issuing software with flaws..... If they would just offer a downgrade option for software..

  • Dbconsole does not work after windows domain change

    I have change windows domain of a oracle 10g server when it was already installed. After that, I can not install dbconsole in a new instance. The service starts but the login screen does not appear.
    Does anyone have any idea ?

    Have you tried to start directly with the emctl command directly on the command line?
    What's the error message displayed.
    When you change your domain the asociated configuration file is not matched, and emctl is unable to find it.
    You should try to locate a directory named like this: FullyQualifiedHostName_InstanceName
    Once you have changed the domain, oracle is unable to find a configuration with the domain previously stated. You'll have to reconfigure and may be recreate your repository.
    Commands follow:
    set oracle_sid=YourInstanceName
    emctl stop dbconsole
    emca -repos recreate
    emca -deconfig dbcontrol db
    emca -config dbcontrol db

  • Em does not start after servername has changed

    Is there a possibility to get the datanbase running in an ordinary way after the servername has changed after the installation of the database?
    System:
    Windows Server 2003R2
    Oracle 10g R2
    I have changed tnsnames.ora and listener.ora, so the client connection runs well.
    But enterprise manager does not start:
    If I want to start "Database control" there is the old servername in the http-Link:
    http://oldservername:1158/em
    If I replace the old name with "localhost" or the new name I get also an errormessage that the site cant be found.
    In services the OracleDBConsole cant be started.
    with ">emctl start dbconsole" I get the error message ORACLE_SID is not defined.
    Defining it does not change the behaviour.
    Do I have to reinstall the database?
    Thanks
    Roswitha

    Subject: How To Drop, Create And Recreate DB Control In A 10g Database
    Doc ID: Note:278100.1 Type: BULLETIN
    Last Revision Date: 05-JUN-2007 Status: PUBLISHED
    In this Document
    Purpose
    Scope and Application
    How To Drop, Create And Recreate DB Control In A 10g Database
    DB Control options:
    A. Delete DB Control Objects:
    B. Create DB Control Objects
    C. Recreate/ReConfig DB Control
    Applies to:
    Enterprise Manager Grid Control - Version: 10.1 to 10.2
    Information in this document applies to any platform.
    DBConsole
    Purpose
    This article provides detailed instructions on how to 1) create, 2) drop and 3)recreate the repository and configuration files for the DB Control application used to manage a single 10g Database.
    Scope and Application
    The steps in this article are written for a DBA or System Administrator who needs to create, drop or reconfigure the DB Control Application.
    The format of the document will include steps for both 10.1 and 10.2 EMCA because the commands changed between the two releases.
    How To Drop, Create And Recreate DB Control In A 10g Database
    DB Control options:
    A. Delete DB Control Objects:
    Option 1. Delete DB Control Configuration Files using EMCA scripts
    Option 2. Delete DB Control Configuration Files Manually:
    Option 3. Delete DB Control Repository Objects using RepManager
    Option 4. Delete DB Control Repository Objects Manually
    Option 5. Delete DB Control Configuration Files and Repository Objects using EMCA
    Option 1. Delete DB Control Configuration Files using EMCA scripts:
    For DB Control 10.1.x, run the command: <ORACLE_HOME>/bin/emca -x <sid>For DB Control 10.2.x, run the command: <ORACLE_HOME>bin/emca -deconfig dbcontrol db
    Option 2. Delete DB Control Configuration Files Manually:
    Remove the following directories from your filesystem:
    <ORACLE_HOME>/<hostname_sid>
    <ORACLE_HOME>/oc4j/j2ee/OC4J_DBConsole_<hostname>_<sid>
    NOTE:
    On Windows you also need to delete the DB Console service:
    - run regedit
    - navigate to HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services
    - locate the OracleDBConsole<sid> entry and delete it
    Alternatively on Windows XP and Windows Server 2003 you can run the following from the command line:
    'sc delete <service_name>'
    - where <service_name> is the DB Control service name (typically: OracleDBConsole<sid>)
    Also available from Microsoft is the delsrv.exe command. (Free download from Microsoft)
    Option 3. Delete DB Control Repository using RepManager:
    This option is not as complete as the other options. You may find that dropping the repository using the commandline options is a better solution. Also note, RepManager is not used to create a DB Control Repository.
    In both 10g R1 and R2 run: <ORACLE_HOME>/sysman/admin/emdrep/bin/RepManager <hostname> <listener_port> <sid> -action drop
    Option 4. Delete DB Control Repository Objects Manually
    Logon SQLPLUS as user SYS or SYSTEM, and drop the sysman account and management objects:SQL> SHUTDOWN
    IMMEDIATE;SQL> STARTUP RESTRICT;SQL> EXEC sysman.emd_maintenance.remove_em_dbms_jobs;SQL> EXEC sysman.setEMUserContext('',5);SQL>
    REVOKE dba FROM sysman;SQL> DECLARECURSOR c1 ISSELECT owner, synonym_name nameFROM dba_synonymsWHERE table_owner
    = 'SYSMAN';BEGINFOR r1 IN c1 LOOPIF r1.owner = 'PUBLIC' THENEXECUTE IMMEDIATE 'DROP PUBLIC SYNONYM '||r1.name;ELSEEXECUTE
    IMMEDIATE 'DROP SYNONYM '||r1.owner||'.'||r1.name;END IF;END LOOP;END;/SQL> DROP USER mgmt_view CASCADE;SQL> DROP ROLE mgmt_user;SQL> DROP USER sysman CASCADE;SQL> ALTER SYSTEM DISABLE RESTRICTED SESSION;
    Note: The above will completely delete the DB Control repository from the database; under certain circumstances (e.g. you want to recreate the repository later on) the following statements may be sufficient to remove the repository:
    Logon SQLPLUS as user SYS or SYSTEM, and drop the sysman account and management objects:SQL> drop user
    sysman cascade;SQL> drop role MGMT_USER;SQL> drop user MGMT_VIEW cascade;SQL> drop public synonym MGMT_TARGET_BLACKOUTS;SQL> drop public synonym SETEMVIEWUSERCONTEXT;
    Option 5. Delete DB Control Configuration Files and Repository Objects using EMCA
    For DB Control 10.1.x, dropping both the configuration files and the repository objects is a two step process. Run the following two commands:
    <ORACLE_HOME>/bin/emca -x <sid><ORACLE_HOME>/sysman/admin/emdrep/bin/RepManager <hostname> <listener_port> <sid> -action drop
    For DB Control 10.2.x, both configuration files and repository objects can be deleted with a single command. Run the command:
    <ORACLE_HOME>/bin/emca -deconfig dbcontrol db -repos drop
    B. Create DB Control Objects
    Option 1. Create the DB Control Configuration Files
    Option 2. Create the DB Control Repository Objects and Configuration Files
    Option 1. Create the DB Control Configuration Files
    To create only the DB Control configuration files, skipping the repository creation (this would be done for instance if you dropped only the files and left the repository in place):
    For DB Control 10.1.x, run the command: <ORACLE_HOME>/bin/emca -rFor DB Control 10.2.x, run the command: <ORACLE_HOME>/bin/emca -config dbcontrol db
    Option 2. Create the DB Control Repository Objects and Configuration Files
    For DB Control 10.1.x, run the command: <ORACLE_HOME>/bin/emcaFor DB Control 10.2.x, run the command: <ORACLE_HOME>bin/emca -config dbcontrol db -repos create
    C. Recreate/ReConfig DB Control
    Option 1. Recreate the DB Control Configuration Files only (leave Repository intact)
    Option 2. Recreate the DB Control Configuration Files and Repository
    In 10.2, the EMCA commands can be used to reconfigure the existing installs without removing them first.
    Option 1. Recreate the DB Control Configuration Files only (leave Repository intact):
    For DB Control 10.2.x, run the command:
    <ORACLE_HOME>/bin/emca -config dbcontrol db
    Option 2. Recreate the DB Control Configuration Files and Repository
    For DB Control 10.2.x, run the command:
    <ORACLE_HOME>/bin/emca -config dbcontrol db -repos recreate
    For additional information on EMCA commandline options, please see the Oracle Enterprise Manager 10g Advanced Configuration Guide or see Note 330130.1 Overview Of The EMCA Commands Available for DB Control 10.2

  • Iphone 3G intermittently does not ring after 4.01 update

    I am having an issue with my Iphone 3G after I've done both the 4.0 and 4.01 updates in that it intermittently will not allow phone calls to go through. The calls get sent to VoiceMail rather than ringing. The phone is not on vibrate. I'm not sure if this may be related to the Wi-fi issues that I've seen posted here. It is intermittent so it's hard to pinpoint when this occurs. Has anyone else had this similar issue and what can be done to fix this? I don't want to upgrade to the Iphone 4. Thanks

    This happens to me too, occasionally, and I am on 4.1. I'm new to the iPhone, and there really do seem to be a lot of bugs, for a phone that's supposed to be a leader in the market. Can't say I'm all that impressed.

  • Spark DropDownList width does not fit largest item.

    In some, but not all cases, when the first item in a Spark DropDownList is not the longest item, when I click on the list to select an item, it resizes to the size of the first item, and thus the other items if selected are truncated.
    Is there a workaround?

    At last, I solved the problem of "determining the longest item" by using the idea mentioned in http://stackoverflow.com/questions/4628368/length-of-a-string-in-pixels.
            var format:TextFormat = new TextFormat();
            format.font = myDropDownList.getStyle("font-family"); // since we're working with a css file for the styling
            format.size = myDropDownList.getStyle("font-size");
    Then for each item in the DropDownList's dataprovider determine this width:
           textField.text = item.value; // in my case
            var width:int = textField.textWidth;
    Once you determined the item with the biggest width, set that one as the DropDownList's typicalItem.

  • The iPhone 3G S does not fit perfect into the iPhone 3G dock does it?

    Anyone else having this issue? I mean, it sits in there, but going in and coming out of the dock doesn't feel as smooth as it did with the iPhone 3G, yet Apple says the dock works with both.

    I know what you are saying, which has nothing to do with the dock being compatible or if it works with both.
    Does your dock work with your 3GS?
    If so, then it works with the 3G and with the 3GS as Apple says it does.
    I don't use a dock. I never used the dock included with my first generation iPhone, and I didn't purchase a dock for my 3G.

  • IPsec Router - RV110W Does not nslookup after wan IP changes

    Hello,
    I have a cisco router RV110W with ipsec tunnel created to a zyxel router.
    The RV110W has a static public ip. How ever the Zyxel has a dynamic IP so i am using dyndns to solve the ip changes.
    Ipsec tunnel works fine until public IP from Zyxel changes, then it stops to work. Only after a reboot in RV110W it becomes normal again.
    I'm thinking that RV110W router cannot do nslookup after a remote router IP change.
    I already had to zyxel routers doing this IPsec tunneling and it always worked normally. Then for external issues i had to change one of them to Cisco.

    Did anybody ever find a solution to this?  It worked well in 10.7, but no love in 10.8.
    I've found that I have to manually execute sudo /etc/ppp/ip-up between 5-60 seconds after I make my VPN connection otherwise my routes are not added.  This is important for me because I use VPN on demand to ensure most of my traffic isn't routing to my work VPN; but rather my home network (which is substantially faster).

  • My email does not send after a password change

    After initally setting up my gmail on my ipad, i had to change the password for security. Since doing this my email app will not work. when i try to send an email it is sent to my ou8tbox and stays there. I have tried to go to settings to delete the account, but under the "mail, contacts, calendars" tab all of my account options are grey and unselectable. How can i access my email again?

    This may sound like a silly question but did you change your password on just the iPad or in gmail on your computer? 

  • IPhone 5c does not fit in 5/5s in Apple Store docks

    iPhone 5c does not fit in 5/5s in Apple Store docks, it is too fat.
    Does this mean there has to be an entire new class of docks just for this model?
    Peter

    So you base this on being at a completely different store the next week after the launch?
    Sorry I'm not buying that.
    Whilst my wife stood obediently in line I went to the front to observe just how few people were inside and observe the staff. I also spoke to those "managing" the line who deliberately kept things vague when I had already accertained what Apple was and was not offering by just talking to people coming out of the store.
    I also spoke to the cameraman and photographer Apple had engaged to "document" the "massive demand" for the new phones, to check they weren't from real news services.
    Yes it may be cynical but it is marketing and if you don't believe you are being manipulated either by Apple or those fiddling with "social media" you are ripe for the taking.
    I just wish Apple employed less people in marketing and more developing and refining products so they don't ship with annoying flaws. Not like they are either producing lots of new products let alone products that are actually ground breaking or that different lately. These were just tweaks, one to an inconsistent connector, with no other significant change than material and color.

  • WiFi iPhone 4S does not work after update iOS 6.0

    WiFi iPhone 4S does not work after update iOS 6.0

    This sounds more like a hardware issue.
    Have you checked that the dock connector port is not dirty?

  • Wi-Fi does not work after 7 ISO download for iPhone 4s  What is the solution

    Wi-Fi does not work after 7 ISO download for iPhone 4s
    What is the solution

    For clarification, 7 ISO is not an Apple software product
    iOS 7 is...
    What is your issue with the wifi?
    Have you reset network settings?
    Can you include screenshots of the issue?

  • After sending sound from find my iphone, now ipad does not work

    after sending sound from find my iphone, now ipad does not work
    it can't be unlock and scrren is blank, only siri works

    Try a reset: hold down the home button along with the sleep/wake button until you see the apple, then let go.

Maybe you are looking for

  • Print List Archiving

    hi, When i see job log for print list link, i am getting messgae as Print list size exceeds 2 GB limit in spool system. How to reduce the size of print list.

  • Using variable names for object names

    Is there any way you can use a String variable to name an object? I.e., something like: String name = "objectName"; \\ create an Image object named objectName Image (name.valueOf()) = new Image(); This code obviously does not work, but I'm working on

  • Need to understand how system time is computed by mpstat

    Hi! i've got difficulties analyzing system utilization. Linux utilities (vmstat, iosat, mpstat) report system utilization on level of 3-6%, but when it's 6% system slows down in a visible way. Generally speaking spikes up to 6% are visible in applica

  • Mac Pro Slow to load webpages

    Almost overnight, My MacPro (late 2009 Dual Quad, 2 1Tetra HD) started to REALLY slow down when loading webpages on both Safari and Firefox. Some times , I will get the "safari can't find browser" message...and if I try it again, it will load....afte

  • Amplitude Swept Two channel reading

    Hi, I am currently trying to include another channel for reading in data using the amplitudeswept and swept sine.vi as I have multiple readings to take for testing. I am currently using a NI USB 6259 device controlling an electrodynamic shaker howeve