Skip to content

Commit

Permalink
fixes issue 22 at elevateweb/elevatezoom
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Brandt committed Jul 31, 2013
1 parent f14ebf0 commit 93028ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions jquery.elevateZoom-3.0.0.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions jquery.elevatezoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ if ( typeof Object.create !== 'function' ) {
//create the div's + ""
//self.zoomContainer = $('<div/>').addClass('zoomContainer').css({"position":"relative", "height":self.nzHeight, "width":self.nzWidth});

self.zoomContainer = $('<div class="zoomContainer" style="-webkit-transform: translateZ(0);position:absolute;left:'+self.nzOffset.left+'px;top:'+self.nzOffset.top+'px;height:'+self.nzHeight+'px;width:'+self.nzWidth+'px;"></div>');
self.zoomContainer = $('<div class="zoomContainer" style="-webkit-transform: translateZ(0);position:absolute;left:'+self.nzOffset.left+'px;top:'+self.nzOffset.top+'px;height:'+self.nzHeight+'px;width:'+self.nzWidth+'px;z-index:999;"></div>');
$('body').append(self.zoomContainer);


Expand Down Expand Up @@ -287,7 +287,10 @@ if ( typeof Object.create !== 'function' ) {
self.$elem.trigger('click');
});
}
self.zoomWindowContainer = $('<div/>').addClass('zoomWindowContainer').css("width",self.options.zoomWindowWidth);
self.zoomWindowContainer = $('<div/>').addClass('zoomWindowContainer').css({
"width": self.options.zoomWindowWidth,
"z-index": 999
});
self.zoomWindow.wrap(self.zoomWindowContainer);


Expand Down

0 comments on commit 93028ad

Please sign in to comment.