leafo / sticky-kit

A jQuery plugin for creating smart sticky elements
http://leafo.net/sticky-kit
2.9k stars 517 forks source link

Fix. Element is not moving, when it gets free space to move. #253

Open AntonAL opened 7 years ago

AntonAL commented 7 years ago

When StickyKit was initialized for element at a moment, where parent's height was equal to element's height, following issues occurs:

  1. When element gets free space (e.g. by page recomposition), it will not move, because event listeners was not attached;
  2. Triggering 'sticky_kit:detach' has no effect.