openlayers/ol3 — pull request #1612 by twpayne (2014-01-28 18:01:39+00:00)
Title: Ensure that entire extent is visible in ol.View2D#fitExtent

This PR fixes a bug in `ol.View2D#fitExtent`.

Previously, the resolution required to fit the extent was calculated, and then this was rounded to the *nearest* constrained resolution (zoom level). If this nearest zoom level had a lower resolution (i.e. a higher zoom level), then this resulted in the view being too "zoomed in" and not fitting the passed extent.

The fix here is to round to the higher resolution if needed.