-
-
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
Widgets overlap #919
Comments
Did you ever find a fix for this issue? |
I get this issue when I drag a new widget to a grid. The new widget can be placed over other widgets, while the widgets that were loaded from start in the grid behave correctly. This happens with 0.4.0, but if I revert to 0.2.7-dev which is used in the Two grid demo (http://gridstackjs.com/demo/two.html), then it behaves as it should, i.e. widgets move when the new widget is placed on top. |
I can confirm now it also happens with current widgets in the grid, but under certain conditions, which are that when a widget appears later on in the code, then that widget can be placed over a widget earlier on in the code. I.e. I have three widgets (a, b, c) in that order in my code on the grid. When a is dragged over b and c, then b and c are changing position. When b is dragged, a is not changing position, but c is. When c is dragged, a and b are not changing position. |
Hi there, I have been having this same issue giving me grief when I was using grids with custom content. To fix the issue I rolled back my version to 0.3. Hope this helps! |
Any update on this? I'm having this issue and I can't seem to isolate what the problem is. My widgets end up overlapping each other and won't push other widgets down or to the side. I doesn't seem like expected behavior, and I don't get this problem on any demo pages. I can confirm: When I downgraded to 0.3.0 it starts functioning mostly as expected. |
Can confirm too, downgrading to 0.3 I am getting the same behavior as on main GridstackJS demo page. But was getting overlapping and chaotic unpredictable movement both in 0.4 and 1.0dev. Any update on fix making it into 1.0 release? |
I think the bug was introduced by this commit: If you change the line .take(i) with |
There are two ".take (i)" line to fix it at gridstack.js 1.0.0-dev version. |
I know that there are weird problems in a multi-grid scenario, but could someone let me know how I can replicate the issue with just one grid? I haven't had overlapping widgets, but if several of you are, there's certainly an issue. Let me know some more information and I'll take a look. |
Here's an example I took it from an other issue to try in my solution and when changing between 0.3.0 and 0.4.0 version there is a difference in the dragging functionality. Dragging B over A overlaps in 0.4.0 the same action in 0.3.0 moves A underneath B.
Code copied from here : |
As I wrote above, the problem was introduced by the commit "Avoid collision check of node with itself". |
@kenneylo2113 I copied your example into two.html and made sure to use gridstack 0.4.0 (yarn add gridstach and copied the files over my dist folder) and I cannot reproduce this moving B over A on Chrome,FF,Edge windows10. We will be release 0.5.0 soon so maybe you guys can try if still reproduce, but neither @dweiss nor I can see this issue. Maybe a video clip if there is a trick to make it happen ? |
Hey Guys, I'm having the same issue, using cdn 0.4.0 now downgrading to 0.3.0, fixes this. Here's a video showing what is happening. |
Having the same issue with cdn 0.4.0 version. Here is a JSFiddle for float demo using cdn. Later widgets can overlap over prior widgets. |
Please check 1.0.0-dev version. All overlap issues seems to be fixed. I could not find any till now. |
v1.0.0-dev are not tagged how we install it with dependency manager? |
I just used v1.0.0-dev. Overlapping issue is fixed in it.
…On Mon, Jun 10, 2019 at 9:51 AM Umut Karakulak ***@***.***> wrote:
Having the same issue with cdn 0.4.0 version. Here is a JSFiddle for
float demo <https://jsfiddle.net/umutto/f5rb2ge4/1/> using cdn.
Later widgets can overlap over prior widgets.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#919?email_source=notifications&email_token=AAWPDH52QFZPFIMXHS5WFSDPZXJFNA5CNFSM4FJOYXJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXI4MEA#issuecomment-500286992>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAWPDH2ROXEOECYSXPOLKDTPZXJFNANCNFSM4FJOYXJQ>
.
--
Thanks & regards,
Rajesh Kumar Mishra
|
I think there are a few different bugs listed here, but I also believe they're all fixed. If anyone here still has an issue, please open a new ticket. |
Subject of the issue
When widgets are resized moved - they could overlap each other
Your environment
Steps to reproduce
Attached screenshot with issue. Using standard Gridstack setup
Expected behaviour
Dragged/resized widgets should push others out of the way
Actual behaviour
The text was updated successfully, but these errors were encountered: