Skip to content

Widget with locked,no-move,no-resize set true is still moved by other widgets #882

@1995navinkumar

Description

@1995navinkumar

Subject of the issue

A grid-item supplied with attributes "data-gs-locked=true data-gs-no-move=true data-gs-no-resize=true" is still moved by other widgets when dragged on top of it.

Your environment

  • version of gridstack.js - 0.3

Steps to reproduce

Drag the first widget on top of the second widget (locked)
Use this fiddle - https://jsfiddle.net/dqyvh6vr/30/

Expected behaviour

The position of the locked widget should not change . It should be locked

Actual behaviour

Position changes only when other widget is dragged on top of it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions