Skip to content

Commit

Permalink
修改无用代码
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangRui committed Sep 3, 2015
1 parent fb842c2 commit 683f8bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ Gallery = (function(superClass) {
height: $win.height() - 90
};
showZoom = this.curOriginSize.width > stageSize.width || this.curOriginSize.height > stageSize.height;
this.gallery.css(this._fitSize(stageSize, this.curOriginSize));
this.gallery.css(this._fitSize(stageSize, originSize));
this.img.attr('src', thumbImg.src);
if (showZoom) {
this.zoom_in = this.wrapper.find('.zoom-in');
Expand Down
2 changes: 1 addition & 1 deletion src/gallery.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class Gallery extends SimpleModule
height: $win.height() - 90
showZoom = @curOriginSize.width > stageSize.width or @curOriginSize.height > stageSize.height

@gallery.css @_fitSize stageSize, @curOriginSize
@gallery.css @_fitSize stageSize, originSize
@img.attr('src', thumbImg.src)

if showZoom
Expand Down

0 comments on commit 683f8bd

Please sign in to comment.