PuruVJ / neodrag

One Draggable to rule them all 💍
https://neodrag.dev
MIT License
1.57k stars 48 forks source link

Question: Multiple windows/draggables bug (inheriting size, etc) #132

Open kprkr opened 1 year ago

kprkr commented 1 year ago

I currently have 2 windows on my screen that are independently dragable. Great!

However, I have noticed a few things:

  1. They seem to all inherit the largest-window sizing/width.
  2. When one of them change height (due to a content-change) it causes all others to shift

This video demonstrates both these issues. Where they shift upon hiding content, as well as the change in width when the "largest" component changes/updates.

Anyway to fix mainly the width-inheritance issues. But also the windows shifting when one is changed?

willingtonortiz commented 9 months ago

Any updates here?

digitalit commented 6 months ago

Having the same problem and i need all windows to be totally individual.

digitalit commented 6 months ago

@willingtonortiz , did you solve this or did you find another package/solution?

digitalit commented 6 months ago

@kprkr , did you solve this or did you find another package/solution?

PuruVJ commented 5 months ago

Thanks for opening the issue

Please provide a minimal reproduction that I can test against

jgabriel98 commented 1 month ago

Thanks for opening the issue

Please provide a minimal reproduction that I can test against

Not the exact reported issue, but is probably related (problem with height|width inheritance):

The created dragable container uses its parent maxWidth or maxHeight. This would be solved if it used it's content/child dimensions

https://codesandbox.io/p/sandbox/icy-frog-96ntws