ngSticky icon indicating copy to clipboard operation
ngSticky copied to clipboard

Purpose of Setting 'height' CSS on Unstick

Open pbtura opened this issue 10 years ago • 2 comments

What is the purpose of setting an explicit 'height' style during the 'unStickElement' method call? Since the 'stickElement' method never sets that style there is no need to reset it during the unstick. In fact, setting an explicit height during the unstick can potentially cause bugs. If the 'sticky' element changes height, the next call to 'unstick' will undo those changes.

pbtura avatar Oct 27 '15 19:10 pbtura

:+1: I have a styling issue caused by ngSticky setting the height

charlierudolph avatar Feb 03 '16 01:02 charlierudolph

+1

vincentjames501 avatar Mar 16 '16 17:03 vincentjames501