react-sticky icon indicating copy to clipboard operation
react-sticky copied to clipboard

Stacked relative

Open denis-sokolov opened this issue 8 years ago • 7 comments

I would like to get an effect of the stacked demo, where multiple sticky headers politely let one another to be at the top of the screen, only relative to an arbitrary container (relative option in the library).

It seems at the moment this is not supported.

denis-sokolov avatar May 12 '17 15:05 denis-sokolov

I am facing the same issue. Were you able to fix it?

kolhead avatar Jun 12 '17 15:06 kolhead

No. But depending on your browser support, position: sticky might be good enough now or in the future.

denis-sokolov avatar Jun 12 '17 18:06 denis-sokolov

@denis-sokolov I'm not quite understanding what the problem is. You're trying to replicate the stacked demo?

vcarl avatar Feb 22 '18 16:02 vcarl

@vcarl, yes, the stacked demo, but not at the top of the screen, but at the top of an arbitrary container, like in the “relative” demo.

denis-sokolov avatar Feb 22 '18 17:02 denis-sokolov

Gotcha, okay. It definitely does seem like if the stacked demo works, and the relative demo works, a stacked relative demo should work as well.

I'm still familiarizing myself with the library, would you be able to make a "stacked relative" demo as a PR? It seems like a valuable addition to the docs, and if it produces buggy behavior it would help me a lot when I go to debug it.

vcarl avatar Feb 22 '18 20:02 vcarl

Sorry, it’s been a while, I’m not using it in my current project and it’ll cost me much more effort to get back into the context.

denis-sokolov avatar Feb 23 '18 14:02 denis-sokolov

Okay, that's fine! I'll leave this open as a doc enhancement issue, and will open a bug issue if I find something's not working right.

vcarl avatar Feb 23 '18 14:02 vcarl