Skip to content

Update() on resizeHandles of item is not working #1842

Closed

Description

@matheusbenedet

Subject of the issue

resizeHandles of item is not working

Your environment

"gridstack": "^4.2.6",
"jquery": "^3.5.1",
Firefox: 91.0.2

Steps to reproduce

`grid.on('dropped', function(event, previousWidget, newWidget) {
setTimeout(function () {
grid.update(newWidget.el, {resizeHandles: "e,w"});
}, 200);

});`

Expected behavior

If i put another item option works, but resizeHandles not work.

Actual behavior

the resizes continues the default.

Activity

  1. adumesny commented on Sep 13, 2021

    @adumesny
    Member

    not really surprise that attributes isn't handled... is that only on dropped (possibly another element than originally dragged ? just want to point since you didn't post a running sample!

  2. matheusbenedet commented on Sep 14, 2021

    @matheusbenedet
    Author

    Here is a sample: https://jsfiddle.net/wy4vm6pd/4/
    Line: 49 : {resizeHandles: "e,w", w:1,h:1}
    see that width and height works but resizeHandles not

  3. adumesny commented on Sep 14, 2021

    @adumesny
    Member

    most attributes can be set on the .newWidget ahead of time and will be re-used during drag+drop, though resize handles is a GRID option, not a per item option so this isn't a valid bug... closing.

  4. matheusbenedet commented on Sep 18, 2021

    @matheusbenedet
    Author

    See docs:

    image

  5. adumesny commented on Dec 13, 2021

    @adumesny
    Member

    I never knew items could have their own resize handles... will have to add or update doc.

  6. changed the title [-]resizeHandles of item is not working[/-] [+]Update() on resizeHandles of item is not working[/+] on Dec 13, 2021
  7. adumesny commented on Dec 30, 2022

    @adumesny
    Member

    so the doc is there, and code to read/write those fields is there, but there is no code (nor do I recall running into it) to set a per widget resize handler differently from the grid option. Only a widget can be resizable or not (no handles).
    Will remove this never implemented feature out...

  8. added a commit that references this issue on Dec 30, 2022
    0742a64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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