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

Feature requests for invoking position recalculation manually #163

Open
CNSeniorious000 opened this issue Jun 18, 2024 · 0 comments
Open

Comments

@CNSeniorious000
Copy link

Sometimes the window/container got resized, or the element's size changes, and its height is larger than its bounds.

If I drag it at this moment, it will got shrink. But if I don't drag it, it will stay unresized, which is bad.

I want to have an exposed function that I can call to manually invoke the recalculation of the element's position on the screen, no need to drag it.

Or, if this is not elegant, I think it's possible to listen to resize events of the element's container, and watch the element's size?

Or, we can do this outside neodrag, and emit a custom event when we need this. Can there be an option to listen to a custom event?

I think all these 3 approach looks good to me. I really need this and believe this is a common use case. Thank you for all your work!

@CNSeniorious000 CNSeniorious000 changed the title Feature requests for exposing an API for manually invoke recalculation of the position Feature requests for invoking position recalculation manually Jun 18, 2024
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

1 participant