title: UIView in UIScrollView does not adjust width
body: <p>I have been searching through stackOverflow and whatever google proposes but I wasn't able to get it to work. I am intending to draw a simple 2D Graph in a scrollview, the distance between my datapoints is <code>kStepX</code> and I want the scrollview to be at least the width of the screen, if I have more datapoints it should scroll but no more than 100 points.</p>
  
  <p>I think I have a problem with my Autolayout and sizing the contentWidth, so here is what I have done so far:</p>
  
  <ol>
  <li>I added a UIScrollView with the following constraints:
  
  <ul>
  <li>Leading Space to Superview =0</li>
  <li>Top space to superview =0</li>
  <li>Height = width of superview</li>
  <li>Width = width of superview</li>
  </ul></li>
  <li>I then added a UIView (called GraphView) as a Child with the following constraints:
  
  <ul>
  <li>zero space to all 4 bounds of scrollview</li>
  <li>center X and center Y to scrollview</li>
  </ul></li>
  </ol>
  
  <p>in my GraphViewController I set the contenSize as:</p>
  
  <pre><code>historyScrollView.contentSize = CGSizeMake(MAX(SCREEN_WIDTH,sizeof(data)*kStepX), kGraphHeight);
  </code></pre>
  
  <p>but it does not scroll!
  if I set a fix width in the storyboard the scrollview scrolls further than I have data..</p>
  
  <p>What am I doing wrong?</p>