Skip to content
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

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

Closed
1995navinkumar opened this issue May 11, 2018 · 2 comments

Comments

@1995navinkumar
Copy link

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.

@1995navinkumar 1995navinkumar changed the title Widget locked,no-move-no-resize set true is still moved by other widgets Widget with locked,no-move,no-resize set true is still moved by other widgets May 11, 2018
radiolips added a commit to radiolips/gridstack.js that referenced this issue May 11, 2018
radiolips added a commit that referenced this issue May 11, 2018
Fix #882, set version at 1.0.0-dev, update demos to use lodash 4.
@radiolips
Copy link
Member

Fixed in new 1.0.0-dev.

@Souleste
Copy link

Souleste commented Nov 1, 2019

I'm encountering this issue. Setting "yes" on all sibling widgets in dragstart, then setting to "no" in dragstop. It is setting them, however they are not working, they can still be pushed around when dragging the current widget over them...

Here is a link to my codepen where I am encountering this issue: https://codepen.io/Souleste/pen/wvvpGbE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants