Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sidebar height change => clicked area still visible #94

Open
janfranek opened this issue Aug 16, 2023 · 2 comments
Open

Sidebar height change => clicked area still visible #94

janfranek opened this issue Aug 16, 2023 · 2 comments

Comments

@janfranek
Copy link

Hi,
is it possible to change this great sticky box behaviour a little?
Now when you expand sidebar and you're scrolled down, it changes to stickyBottom and content right after clicked button disappears:
image

But it would be nicer if sidebar stays "sticked" to top or relative, depends where you are. Like on this image:
image
So content of your sidebar don't hide outside of screen.

Changing this would make this sticky box more user friendly.

@danielberndt
Copy link
Collaborator

As far as I understood, the behavior you are describing is the native position: sticky behavior. In that case you don't need this library. But I might be misunderstanding you here!

@janfranek
Copy link
Author

As far as I understood, the behavior you are describing is the native position: sticky behavior. In that case you don't need this library. But I might be misunderstanding you here!

Well, I still want sticky bottom behavior when I scroll down.
If you are in the middle of sidebar and you scrolled only down, it works correctly, sticky mode remains Relative. But when you start scrolling up and sticky mode changes to StickyTop. expanding sidebar changes mode to Bottom or Relative, that's unwanted behavior.
Sticky Mode should stay sticky top if 1) it was sticky top before and 2) you expand or collapse the sidebar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants