Skip to content

Commit 601068c

Browse files
committed
close issue #14
1 parent 5a4a72d commit 601068c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: parallax.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* parallax.js v1.2 (http://pixelcog.github.io/parallax.js/)
2+
* parallax.js v1.2.1 (http://pixelcog.github.io/parallax.js/)
33
* Copyright (c) 2014 PixelCog, Inc.
44
* Licensed under MIT (https://github.com/pixelcog/parallax.js/blob/master/LICENSE)
55
*/
@@ -163,8 +163,8 @@
163163
position: 'center',
164164

165165
refresh: function() {
166-
this.boxWidth = this.$element.width();
167-
this.boxHeight = this.$element.height() + this.bleed * 2;
166+
this.boxWidth = this.$element.outerWidth();
167+
this.boxHeight = this.$element.outerHeight() + this.bleed * 2;
168168
this.boxOffsetTop = this.$element.offset().top - this.bleed;
169169
this.boxOffsetLeft = this.$element.offset().left;
170170
this.boxOffsetBottom = this.boxOffsetTop + this.boxHeight;

Diff for: parallax.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)