title: OpenLayers 3 fitExtent not working as expected
body: <p>I am using OpenLayers 3 to display a single image. I am trying to write a function that will zoom so the left side of the image touches to the left side of the container and the right side of the image touches the right side of the container. It doesn't matter if the top and bottom of the image is outside the view.</p>
  
  <p>I have set the projection extent to be the same as the image resolution:</p>
  
  <pre><code>var extent = [0, 0, 2480, 3508];
  projection = new ol.proj.Projection({
      code: 'image',
      units: 'pixels',
      extent: extent
  });
  </code></pre>
  
  <p>I was experimenting with the <code>fitExtent</code> function in the console window using the code:</p>
  
  <pre><code>map.getView().fitExtent([0,0,2480,3508],map.getSize())
  </code></pre>
  
  <p>The result I got wasn't quite what I was expecting. The image is centred, but appears much smaller than I was expecting. I was expecting at least the top and bottom of the image to be touching the top and bottom of the container.</p>
  
  <p>An explanation of why this is happening would be fantastic. A solution that fits the image so the left is on the left and the right is on the right (a zoomToExtentY function) would be even better.</p>
  
  <p><a href="http://jsfiddle.net/flytrap/jcLht6jt/" rel="nofollow">Example fiddle...</a></p>