Using Lightbox 2 since a will now, I was sticked with a feature missing for my needs.
I was looking for a auto-resizing option that may adjust my zoomed image to the window size (if the window is smaller than the image of course).
So I took my sleeves up and get my hand in it.
Check this out ;-)
The usage stay the same.
Only things that may need to be change are the two new configuration variables:
var featBrowser = true; // set it to true or false to choose to auto-adjust the maximum size to the browser var breathingSize = 10; // control the minimum space around the image box