Skip to content
Permalink
Browse files

Thumbanil plugin updates..

  • Loading branch information...
sachinchoolur committed May 31, 2016
1 parent 6c41c77 commit 46ace840e0fdc03e79f864ad4b47c7057237ac6e
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/lightgallery/js/lg-thumbnail.js
@@ -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>';

0 comments on commit 46ace84

Please sign in to comment.
You can’t perform that action at this time.