- preserve the width of the sticky element, when resizing the window

this fixes an issue when resizing the browser and the element is fixed
oh, my fault.

This was just a test and I forgot to remove it.

Regards,
Thimo


d-oliveros schrieb:
>
> In sticky.js:
>
> > @@ -25,6 +26,8 @@ angular.module('sticky', [])
> > //
> > function setInitial(){
> > stickyLine = $elem[0].offsetTop - offsetTop;
> > + $elem.css('width','100%');
>
> why are you changing the width to 100%?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/d-oliveros/angular-sticky/pull/2/files#r15143177>.