Configuration You can pass options as a 3rd parameter. Here are the default values and what each parameter means… fit( bar, foo, { // Alignment hAlign: fit.CENTER, // or fit.LEFT, fit.RIGHT vAlign: fit.CENTER, // or fit.TOP, fit.BOTTOM // Fit within the area or fill it all (true) cover: false, // Fit again automatically on window resize watch: false, // Apply computed transformations (true) or jus
![Fit.js » Fit things into other things](https://cdn-ak-scissors.b.st-hatena.com/image/square/9ffee9a530437ac155613b13401489298dfab510/height=288;version=1;width=512/http%3A%2F%2Faral.github.com%2Ffork-me-on-github-retina-ribbons%2Fright-graphite%402x.png)