w11k / angular-sticky-things

Sticky Directive for Angular 2+

Home Page:https://w11k.github.io/angular-sticky-things

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add ghost/placeholder take up space

mailiam opened this issue · comments

sticky element would collapse stacking when fixed.

to prevent layout bug, fixed element should create placeholder to take up space where it has been before.

current workaround is to wrap stickyThing with a div with fixed size.

I kind of assumed this already did this. This is a must-have in order to make content not jolt upwards when transitioning the element to be sticky.

@mailiam @JaxonWright if you could provide an example of desired behavior and a counterexample i'll see what I can do to fix the problem.