Skip to content

Commit

Permalink
Merge pull request bigspotteddog#19 from megamattron/patch-2
Browse files Browse the repository at this point in the history
Don't insert spacer if element is fixed.
  • Loading branch information
bigspotteddog committed Mar 8, 2012
2 parents bcbff86 + 1a9ee9e commit 88326ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery-scrolltofixed.js
Expand Up @@ -296,7 +296,7 @@
spacer = $('<div />');

// Place the spacer right after the target element.
base.$el.after(spacer);
if (isUnfixed()) base.$el.after(spacer);

// Reset the target element offsets when the window is resized, then
// check to see if we need to fix or unfix the target element.
Expand Down

0 comments on commit 88326ac

Please sign in to comment.