-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
removeWidget without detaching Node won't reflow the other widgets #411
Comments
This worked perfectly fine in |
I'm encountering this issue as well. Any idea when it might be fixed? Any ideas on a workaround if need be? |
I tried moving widgets using something like this
It seemed to work fine at first, but then it stopped working for me. |
I solved this by modifying gridstack-angular's "destroy" function to call Gridstack's batchUpdate() and commit() methods before and after removing the item, respectively. |
Fixed by #502. |
Hi,
I found an bug after using gridstack-angular which lets angular taking care of the DOM and
just uses removeWidget(widget, false) to remove the widget from the gridstackjs inner data structures.
As a result the grid resize itself, but the other widgets around don't move to their new positions.
Take a look at this screenshot (using gridstack-angular demo http://kdietrich.github.io/gridstack-angular/demo/):
I stacked three widgets over each other and removed the middle one. The grid (blue) adjusts, the widgets not.
The text was updated successfully, but these errors were encountered: