Permalink
Browse files

v3.0.1

  • Loading branch information...
1 parent f8a0142 commit 28617a4bfd4f4680654670356e361101cf2f4fec Ste Brennan committed Nov 1, 2011
Showing with 20 additions and 10 deletions.
  1. +5 −3 README.md
  2. +2 −2 build.number
  3. +1 −1 build.properties
  4. +12 −4 src/zoompanrotate.class.js
View
@@ -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.
View
@@ -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
View
@@ -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
View
@@ -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, {

0 comments on commit 28617a4

Please sign in to comment.