title: I cannot get the UIScrollView to adjust its size based on UIWebView
body: <p>There are so many discussions on the subject between WebView in ScrollView or ScrollView in WebView that I'm completely lost!</p>
  
  <p>In my case, I have a ScrollView which owns a UIImageView of a fixed size and a UIWebView of a variable size.</p>
  
  <p>I used the following solution which seems to correctly compute the height, according to NSLog() output:</p>
  
  <p><strong>* Edit *</strong>
  My web view is initialised  as follow:</p>
  
  <pre><code>    CABBndGMedia *htmlMedia = [[currentPOI listMediaHtml] objectAtIndex:0];
      NSData *htmlData = [NSData dataWithContentsOfURL:[htmlMedia localMediaFilename]];
      poiHtml.delegate = self;
      [poiHtml loadData:htmlData MIMEType:@"text/html" textEncodingName:@"" baseURL:[NSURL URLWithString:@""]];
      poiHtml.scalesPageToFit = YES;
  </code></pre>
  
  <p>And then:</p>
  
  <pre><code>-(void)webViewDidFinishLoad:(UIWebView *)webView{
  
      CGRect frame = poiHtml.frame;
      frame.size.height = 1;
      poiHtml.frame = frame;
      CGSize fittingSize = [poiHtml sizeThatFits:CGSizeZero];
      frame.size = fittingSize;
      poiHtml.frame = frame;
  
      NSLog(@"size: %f, %f", fittingSize.width, fittingSize.height);
  
  }
  </code></pre>
  
  <p><strong>* Edit *</strong>
  After changing the Scrollview background colour, I realised that the WebView doesn't change its height, despite the fittingSize.height value display.</p>
  
  <p>This problem seems to be very "weather" depend according to everything I read in Stackoverflow where some solutions seem to work for someone, not for the other....
  Anyway, what could I miss to get this solution, which seem to be the best one, working?</p>
  
  <p>Regards,</p>