neodrag icon indicating copy to clipboard operation
neodrag copied to clipboard

Feature requests for invoking position recalculation manually

Open CNSeniorious000 opened this issue 8 months ago • 0 comments

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 avatar Jun 18 '24 16:06 CNSeniorious000