title: UITextView rotation causes content size to be wider than frame width
body: <p>Basically I have a UITextView and when I rotate it the content size is wider than the frame size. This causes the text view to scroll horizontally, when there is no text outside of the frame. This behavior is not wanted.</p>
  
  <pre><code>UITextView *ingredientsTextView = [[[UITextView alloc] initWithFrame:CGRectMake(50, 100,315,300)] autorelease];
      [ingredientsTextView setBackgroundColor:[UIColor clearColor]];
      [ingredientsTextView setEditable:NO];
      [ingredientsTextView setAutoresizingMask:UIViewAutoresizingFlexibleLeftMargin];
      [ingredientsTextView setFont:[UIFont fontWithName:@"Helvetica" size:18]];
      [ingredientsTextView setText:ingredientsText];
      ingredientsTextView.transform = CGAffineTransformMakeRotation((3.44*M_PI)/180);
      [ingredientsView addSubview:ingredientsTextView];
  </code></pre>
  
  <p>I can't understand why this is happening. Even putting in a <code>setContentSize</code> method causes it to scroll horizontally (only by about 5/10pts) even when the width is &lt; 100!</p>
  
  <p>Any ideas? Is it just a side effect of rotation? </p>
  
  <p>Thanks
  Tom</p>