davist11/jQuery-Stickem

Window Height when sticky

Closed this issue · 1 comments

If you get a piece of content to stick and then resize the window smaller than that content, it looks like it gets caught being sticky forever.

I solved this issue with these lines, so is normal scroll and you can see all sticky content

      if(_self.windowHeight > item.elemHeight) {
       . . . 
      }else{
                item.$elem.removeClass(_self.config.stickClass)
                item.$elem.removeClass(_self.config.endStickClass)
            }