Autofit functionality!

Page: 1

Author Post
Member
Registered: Dec 2009
Posts: 39
Hi - Could you please have a look at the following page where I've created two thumbnails that pop-up a floatbox when clicked.

http://tinyurl.com/hhyg8ny

The first example pops up a 122 (w) x 600 (h) image, the second a 600 x 600 image. When the viewport is less than the required height (approx 600px) the first example doesn't autofit, but the second does.

Should they both autofit?
Administrator
Registered: Aug 2008
Posts: 3382
The minWidth option defaults to 140px and sets the minimum width that image and video content will be displayed at. To autoFit smaller than this, set minWidth to a smaller non-zero integer.

There's also a minHeight option which defaults to 100.
Member
Registered: Dec 2009
Posts: 39
Oops - I know you're probably thinking "why didn't he RTFM" - in my defence, I'd actually read through all the Size options, but the significance/relevance of minWidth hadn't registered in my ever shrinking brain.

Once again, many thanks for great support and a great product.

Page: 1