Permalink
Browse files

Make all images 8x10 for now.

  • Loading branch information...
1 parent ba12839 commit 06134515b060183ffbd1b27f34eacc6d34ac3aa1 @streeter streeter committed Dec 29, 2010
Showing with 6 additions and 2 deletions.
  1. +5 −1 js/jquery.lightbox-0.5.js
  2. +1 −1 js/jquery.lightbox-0.5.min.js
@@ -249,15 +249,19 @@
$('#lightbox-image-details-caption').hide();
if ( settings.imageArray[settings.activeImage][1] ) {
- var maxHeightWidth = 11;
+ var maxHeightWidth = 12;
var height = parseInt(settings.imageArray[settings.activeImage][5]);
var width = parseInt(settings.imageArray[settings.activeImage][4]);
if (width > height) {
height = Math.round((maxHeightWidth * height) / width * 100) / 100;
width = maxHeightWidth;
+ width = 10;
+ height = 8;
} else {
width = Math.round((maxHeightWidth * width) / height * 100) / 100;
height = maxHeightWidth;
+ width = 8;
+ height = 10;
}
var caption = '<span class="product">';

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 0613451

Please sign in to comment.