ngSticky icon indicating copy to clipboard operation
ngSticky copied to clipboard

sticky grows infinitely when I add padding

Open GuyMograbi opened this issue 8 years ago • 1 comments

reproduced in this awesome plunker : https://plnkr.co/edit/itIzrfbzrng5n9Uuc88u?p=preview

Just scroll down/up several times and see the scroll bar appears for X dimension and grows more and more.

If I remove the padding on [sticky] css, then it's fine.

What I eventually need is a sticky that will be 100% percent and allow some padding. If there's another way to implement this, I'd be happy to align myself to it.

Awesome library! thank you very much!

GuyMograbi avatar Aug 31 '16 13:08 GuyMograbi

Well encapsulate your text, like <div style="padding:20px"> Sticky! </div>

fernandoiwamoto avatar Sep 02 '16 13:09 fernandoiwamoto