garand / sticky

jQuery Plugin for Sticky Objects
Other
3.3k stars 1.06k forks source link

Only works on one html page. Won't work on others with SAME template. #241

Open wikibi opened 7 years ago

wikibi commented 7 years ago

Hi there,

Spent some time scratching my head.

Was able to make garand sticky work EASILY on one html page but not on another.

The templates on both pages are the same.

Here works beautifully: https://goo.gl/U5tWfP

On any other page doesn't work.

I did it the exact same way. Does code change from page to page?

Code used in header:

<script>
$(window).load(function(){
  $("#cometchat_embed_synergy_container").sticky({ topSpacing: -20 });
});

Code used in body:

   
 

Any ideas?

Thank!

bmetcalfenz commented 7 years ago

I am having the same problem, seems to not work when there is an Iframe on the page...