harm-less / angular-sticky

Pure javascript AngularJS directive to make elements stick when scrolling
http://harm-less.github.io/angular-sticky
83 stars 38 forks source link

Issues with Dynamic Content #15

Closed jeremydchambers closed 8 years ago

jeremydchambers commented 8 years ago

I have a toolbar with anchor="bottom". The toolbar is located below a table that takes a few seconds to load. Before the table's data is loaded, the toolbar is rendered correctly, in the non sticky position. After the data is loaded and the table rows are rendered, the toolbar gets bumped down the page, out of view. The toolbar does not become sticky. Any recommendations?

harm-less commented 8 years ago

Hey, I think I do have a suggestion. You could use the drawOptions from hlStickyElement with force set to true. I think that should work. I could be triggered when you load promise had been completed.