Skip to content

Commit

Permalink
Thumbanil plugin updates..
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinchoolur committed May 31, 2016
1 parent 6c41c77 commit 46ace84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/lightgallery/js/lg-thumbnail.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,12 @@
thumbImg = thumb;
}

var _thumbWidth = _this.core.s.thumbWidth + 'px';
var _thumbWidth = _this.core.s.thumbWidth - (_this.core.s.thumbRightBorder * 2) + 'px';
var _thumbHeight = 'auto';

if (_this.core.s.thumbWidth < _this.core.s.thumbContHeight) {
_thumbWidth = 'auto';
_thumbHeight = _this.core.s.thumbContHeight + 'px';
_thumbHeight = _this.core.s.thumbContHeight - (_this.core.s.thumbRightBorder * 2) + 'px';
}

thumbList += '<div data-vimeo-id="' + vimeoId + '" class="lg-thumb-item" style="width:' + _this.core.s.thumbWidth + 'px; margin-right: ' + _this.core.s.thumbMargin + 'px"><img style="width:' + _thumbWidth + ';height:' + _thumbHeight + '" src="' + thumbImg + '" /></div>';
Expand Down

0 comments on commit 46ace84

Please sign in to comment.