Skip to content

Locked not working as expected #2981

@E4RIJMP

Description

@E4RIJMP

Hi, i don't know if it's an issue with the documentation or the implementation. But the documentation reads:

/** prevent direct resizing by the user (default?: undefined = un-constrained) */
noResize?: boolean;
/** prevents direct moving by the user (default?: undefined = un-constrained) */
noMove?: boolean;
/** same as noMove+noResize but also prevents being pushed by other widgets or api (default?: undefined = un-constrained) */
locked?: boolean;

So for locked I would assume that it does the same as noResize and noMove:

same as noMove+noResize but also ...

But if I create an item where locked is true, it can still be moved and resized via mouse. This is not the case if I create an item where noResize is true and noMove is true.

Steps to reproduce

  • Create an item where locked is true
  • Create an item noResize is true and noMove is true
  • Try to move either via mouse

https://jsfiddle.net/7uognfyp/

Expected behavior

Neither item can be resized or moved.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions