jackmoore/colorbox — pull request #245 by suit (2012-08-31 13:22:35+00:00)
Title: Update colorbox/jquery.colorbox.js

scalePhotos has now three values/options:

false (off, no changes)
true, 'contain' (added the keyword, else no changes)
'cover' (the images covers the image container)

the "contain" and "cover" keywords were chosen because of the background-size property and behave exactly the same

of course this new option only works if the image container is greater (width, height or both) than the image itself - for example if you set innerWidth/innerHeight to 100%

its also useful to combine this option with "scrolling: false" - else it gets a bit odd