Check out my problem here:
What should happen is that the months legend should fit at the bottom. It happens if you resize the window manually (cause it triggers the proper event handler), but won’t do at the first page load. Can you figure out why?
Thank you!
Finally, I found a working solution. Manually triggering a resize event after the layout completion will do. Check it out here, and feel free to aport better code:
http://jsfiddle.net/89sq2/19/
Thanks everybody!