Permalink
Browse files

Issue #17 Fixed * Adjusted allowances for width

  • Loading branch information...
1 parent 85ea1a3 commit 2bbe7feea0cce4934d97c652053b2824fbcccee5 Jason Butz committed Jan 14, 2013
@@ -237,10 +237,15 @@
$img.css('max-height', 'none');
- var sOffs = 40; // STYLE ?
- if(that.$element.find('.lightbox-header').length > 0) sOffs += 10;
- $img.css('max-width', $(window).width() - sOffs);
- $img.css('max-height', $(window).height() - sOffs);
+ var wOffs = 50; // STYLE ?
+ var hOffs = 40; // STYLE ?
+ if(that.$element.find('.lightbox-header').length > 0)
+ {
+ wOffs += 40;
+ hOffs += 10;
+ }
+ $img.css('max-width', $(window).width() - wOffs);
+ $img.css('max-height', $(window).height() - hOffs);
that.w = $img.width();
that.h = $img.height();

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

Oops, something went wrong.

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

Oops, something went wrong.
View
@@ -233,7 +233,6 @@
that.w = $img.width();
that.h = $img.height();
- console.log(that.w, that.h);
}
that.$element.css({

0 comments on commit 2bbe7fe

Please sign in to comment.