ricardrobin/Regions.js — pull request #12 by schmidsi (2012-04-05 12:14:50+00:00)
Title: Oversized elements

Hi ricard

I had an issue with images, that are bigger than the target region. The image and all content after the image wasn't displayed. So i wrote a fix which does the following:

- check if there is an element which is immediately rejected in a new region
- if yes, insert that element in this region
- optionally (default : true) adjust the dimension of this element, so it fits the region

there are also test for this

hope you like the additions