-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Locked not working as expected #2981
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
Comments
yeah, this is broken https://gridstackjs.com/demo/web2.html while demo 2 here works as expected |
fixed in next release |
This fix breaks functionality how we use this based on how it is mentioned in the documentation (https://github.com/gridstack/gridstack.js/tree/master/doc):
With this option we keep all present widgets on their place while moving or resizing one widget. When upgrading to version 11.5.0 all widgets are now completely locked. Adding properties |
@DBolderman you are absolutely correct, I keep forgeting what locked means (I don't use it) as different from the other 2 flags... and jumped to a 'fix' in a rush late at night. will revert and publish a patch. thanks for catching that.... |
Then this documentation for |
SHA-1: 5321400 * Locked not working as expected * fix gridstack#2981
fixed in just released v11.5.1 (and doc updated) |
Hi, i don't know if it's an issue with the documentation or the implementation. But the documentation reads:
So for
locked
I would assume that it does the same asnoResize
andnoMove
:But if I create an item where
locked
istrue
, it can still be moved and resized via mouse. This is not the case if I create an item wherenoResize
istrue
andnoMove
istrue
.Steps to reproduce
locked
istrue
noResize
istrue
andnoMove
istrue
https://jsfiddle.net/7uognfyp/
Expected behavior
Neither item can be resized or moved.
The text was updated successfully, but these errors were encountered: