Skip to content

Commit 9afcbaa

Browse files
committed
Merge pull request webpop#31 from Camzilla/gh-pages
Substracted padding variables to bottom and top container
2 parents 7d52f57 + 7abf2e4 commit 9afcbaa

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

jquery.pin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@
6262

6363
elmts.push($this);
6464

65-
var from = data.from,
66-
to = data.to;
65+
var from = data.from - data.pad.bottom,
66+
to = data.to - data.pad.top;
6767

6868
if (from + $this.outerHeight() > data.end) {
6969
$this.css('position', '');

jquery.pin.min.js

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)