Skip to content

Commit

Permalink
v3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Ste Brennan committed Nov 1, 2011
1 parent f8a0142 commit 28617a4
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 10 deletions.
8 changes: 5 additions & 3 deletions README.md
Expand Up @@ -19,11 +19,13 @@ It'd be fantastic to see how you have implemented PhotoSwipe on your site! We're



Latest Release v3.0.0
Latest Release v3.0.1
---------------------
[Download](http://github.com/downloads/codecomputerlove/PhotoSwipe/code.photoswipe-3.0.0.zip)
[Download](http://github.com/downloads/codecomputerlove/PhotoSwipe/code.photoswipe-3.0.1.zip)

**Changes for 3.0.0**
Fixed issue with zooming in on an image and still seeing the original behind it (issue #179).

**Changes for v3**

- You can now specify a target for PhotoSwipe. It doesn't have to run in full screen anymore! To do this, you specify a "target" as part of PhotoSwipe settings. The target MUST be a valid DOM element for it to work. See examples "12-custom-target.html", "13-custom-target-with-indicators.html" for more details.

Expand Down
4 changes: 2 additions & 2 deletions build.number
@@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit!
#Mon Oct 31 12:19:40 GMT 2011
build.number=29
#Tue Nov 01 20:05:35 GMT 2011
build.number=30
2 changes: 1 addition & 1 deletion build.properties
Expand Up @@ -5,7 +5,7 @@
project.description = PhotoSwipe
project.src.dir = src

project.build.version = 3.0.0
project.build.version = 3.0.1
project.build.year = 2011

project.build.workdir = work
Expand Down
16 changes: 12 additions & 4 deletions src/zoompanrotate.class.js
Expand Up @@ -49,10 +49,18 @@

this.settings = options;

parentEl = (this.settings.target === window) ? document.body : this.settings.target;
width = Util.DOM.width(parentEl);
height = Util.DOM.height(parentEl);
top = (this.settings.target === window) ? Util.DOM.windowScrollTop() + 'px': '0px';
if (this.settings.target === window){
parentEl = document.body;
width = Util.DOM.windowWidth();
height = Util.DOM.windowHeight();
top = Util.DOM.windowScrollTop() + 'px';
}
else{
parentEl = this.settings.target;
width = Util.DOM.width(parentEl);
height = Util.DOM.height(parentEl);
top = '0px';
}

this.imageEl = cacheImage.imageEl.cloneNode(false);
Util.DOM.setStyle(this.imageEl, {
Expand Down

0 comments on commit 28617a4

Please sign in to comment.