From 0f39feed46ee4f5037589a15402512fe4c521039 Mon Sep 17 00:00:00 2001 From: Jake Marsh Date: Sun, 8 Mar 2015 16:43:57 -0400 Subject: [PATCH] calculation bug fix --- dist/js/Mixin.js | 2 +- lib/js/Mixin.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/js/Mixin.js b/dist/js/Mixin.js index 8f0f6f5..41bf6eb 100644 --- a/dist/js/Mixin.js +++ b/dist/js/Mixin.js @@ -144,7 +144,7 @@ module.exports = function(settings, done) { this.setState({ xPos: this.preventWindowOverflow(placement.x, 'x', elWidth, elHeight), - yPos: this.preventWindowOverflow(placement.y, 'x', elWidth, elHeight) + yPos: this.preventWindowOverflow(placement.y, 'y', elWidth, elHeight) }); }, diff --git a/lib/js/Mixin.js b/lib/js/Mixin.js index a362829..6de6c17 100644 --- a/lib/js/Mixin.js +++ b/lib/js/Mixin.js @@ -144,7 +144,7 @@ module.exports = function(settings, done) { this.setState({ xPos: this.preventWindowOverflow(placement.x, 'x', elWidth, elHeight), - yPos: this.preventWindowOverflow(placement.y, 'x', elWidth, elHeight) + yPos: this.preventWindowOverflow(placement.y, 'y', elWidth, elHeight) }); }, diff --git a/package.json b/package.json index 63fe317..213b0d8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-tour-guide", - "version": "0.0.4", + "version": "0.0.5", "author": "Jake Marsh ", "description": "A ReactJS mixin to give new users a popup-based tour of your application.", "repository": {