leafo / sticky-kit

A jQuery plugin for creating smart sticky elements

Home Page:http://leafo.net/sticky-kit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with flexbox parent

andybrummer opened this issue · comments

I had an issue where the replacement div was collapsing because it didn't match the flex settings of the element that it replaced. It would be nice if you could copy the css flex value from the element you are replacing.

As it is, I was able to add:
.is_stuck + div { flex: 0 0 auto; }

To my stylesheet.

If you want, I wouldn't mind making the fix myself if you are accepting changes.

I'm not sure if it's the same issue, but I think I'm facing a similar CSS-related problem. On my website, the sidebar is sticky and for some reason, it resizes when the user scrolls, thereby causing the music-player iframe to reload. Does it look like the same issue?