ipad orientation issue with webview and zoom in
<p>i am having a webview in ipad xib  that is working fine in both orientation w.
but if i make zoom-in in portrait mode and then rotationg in landscape webview takes       margin from right side</p>

<pre><code>- (void)viewDidLoad
{
    NSString *urlString=@"http://www.plus.al";
    NSURLRequest *request=[NSURLRequest requestWithURL:[NSURL URLWithString:urlString]];
    webView.scalesPageToFit = YES;
    [webView loadRequest:request];
}

- (BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation 
 {
   if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
    {
        if (UIInterfaceOrientationIsLandscape(interfaceOrientation))
        {

            webView.frame=CGRectMake(0, 0, 1024, 748);

        }
        if (UIInterfaceOrientationIsPortrait(interfaceOrientation)) 
        {

            webView.frame=CGRectMake(0, 0, 768, 1004);

        }
    else {
        if (UIInterfaceOrientationIsLandscape(interfaceOrientation))
        { 
            webView.frame=CGRectMake(0, 0, 480, 300);    
        }
        if (UIInterfaceOrientationIsPortrait(interfaceOrientation)) 
        {

            webView.frame=CGRectMake(0, 0, 320, 460);
        }
    }
    return YES;
 }
</code></pre>

<p>please help me.Thanks in advance.</p>
