Skip to content

Drag and drop a widget on top of a locked widget #2503

Closed

Description

@rsalcedo6

Subject of the issue

It is possible to drag one item and drop it such that it overlaps with a locked widget.

Your environment

GridStack 9.3.0
Windows 10
Chrome browser

Steps to reproduce

Please check out the jsfiddle. There are reproduction steps and grid items to reproduce
https://jsfiddle.net/richsalcedo6/c142owne/

Expected behavior

I would expect that the drop would not be possible

Activity

  1. adumesny commented on Oct 15, 2023

    @adumesny
    Member

    good demo. you'll notice 3 & 4 cannot be placed on the locked one, but when moving 2 it does multiple collision and the logic fails there. complex case.

  2. rsalcedo6 commented on Oct 15, 2023

    @rsalcedo6
    ContributorAuthor

    good demo.

    Thanks!

    it does multiple collision and the logic fails there.

    I spent some time looking at the code last night seeing if I could find where the issue occurs. It was my first time in the code base so it's very unfamiliar to me. I will help as much as I can.

  3. adumesny commented on Oct 15, 2023

    @adumesny
    Member

    likely a hard one to fix unless you know the code and side effects... might be best to donate to have me fix it and unlikely I will do this corner case otherwise...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions