Just a little heads up. If your stylesheet contains something like this:
img {
max-height: 100%;
}
The lightbox will never use the right image height, as the default 250x250px contianer forces the image height to 250px and afterwards the code uses the image element's height to adjust the container size.
Suggestion: Either the lightbox stylesheet can override the image max-height or the javascript can use the preloader height instead of image element's height - just a quick thought.
Hi,
Thanks for a great lightbox library!
Just a little heads up. If your stylesheet contains something like this:
The lightbox will never use the right image height, as the default 250x250px contianer forces the image height to 250px and afterwards the code uses the image element's height to adjust the container size.
Suggestion: Either the lightbox stylesheet can override the image max-height or the javascript can use the preloader height instead of image element's height - just a quick thought.