-
Notifications
You must be signed in to change notification settings - Fork 194
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
JQUERY Gridster Widgets Overlap Issue #127
Comments
I don't know if it's the same issue, but I have had troubles with overlapping widgets as well. It seems like when a widget has moved automatically (due to another widget moving over it) one step horizontally (and only one step and only horizontally) it becomes "intangible". This only happens when the dragged widget is placed adjacent to the affected widget. |
We've been dealing with what I think is the same issue, but it's not limited to horizontal movement. Causing a widget to move horizontally by dragging another widget over it is one way to recreate the issue, but on the demo at http://dsmorse.github.io/gridster.js/, dragging the two-space horizontal rectangle up and over one square, so that its right half is over the bottom of the four-place square, shows similar behavior. Has anyone successfully worked around this, perhaps by implementing custom collision code? I'd rather not go that route if possible—that's part of why we use gridster—but implementing collision code seems like it could be less painful, at least in the short run, versus removing gridster entirely. |
Of course this an amazingly old issue and possibly nobody is using this anymore, and switched to newer implementations in all these newer JS platforms But I had this problem and found a cause (on version 0.7 or 0.8) The simplest reproduction steps for me were for a simple regular grid filled with items of size 1x1 cells: CauseAs a cause I found that in STEP 1, in on_stop_drag there is code that will clear in the gridmap the cell(s) the dragged item left behind. Fix for my scenarioFor my particular use case it was enough to add an extra condition before marking the spot as empty.
NEW
As I said it was good enough for my use case. Since my own problem is covered, I leave it at this. |
I am using Gridster v0.7.0, Recently I am facing one problem that while dragging the widgets the dragged widget gets overlapped on the widget that exists on that co-ordinates.
Below I have attached the GIF for better understanding.
Gridster Overlapping GIF :
https://i.imgur.com/QB31e2s.gif
https://i.postimg.cc/KzT4m9Sh/grid.gif
Adding the code for creating Gridster.
The text was updated successfully, but these errors were encountered: