Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

include min width of lightbox for small images

Signed-off-by: Warren Krewenki <krewenki@gmail.com>
  • Loading branch information...
commit fa02d77b4ff88e6d1d7667de735bfa3f62497f4f 1 parent 811e836
@braddunbar braddunbar authored committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  jquery.lightbox.js
View
2  jquery.lightbox.js
@@ -246,7 +246,7 @@
opts.heightCurrent = $("#outerImageContainer").outerHeight();
// get new width and height
- var widthNew = (imgWidth + (opts.borderSize * 2));
+ var widthNew = Math.max(350, imgWidth + (opts.borderSize * 2));
var heightNew = (imgHeight + (opts.borderSize * 2));
// scalars based on change from old to new
Please sign in to comment.
Something went wrong with that request. Please try again.