Thanks to visit codestin.com
Credit goes to github.com

Skip to content

How to resize widget to final size after animation is done #829

Closed
@candrewtemenoscom

Description

@candrewtemenoscom

I should apologize. This is not an issue. I just want to see if I can some help from this forum. I would like to know how I can make the gridstack item always resize to its nearest placeholder dimension when the resize stop. I found that when it is resized very quickly, the content within the widget did not get resized correctly even though I had code to resize the content accordingly when resize stop. Later on, I find that it is because in the gsresizestop event, the widget height I got is not accurate. But if it is always resize to the placeholder size, the height is correct. Therefore, I would like to always resize the widget to its nearest placeholder when the resize stop.

  • version of gridstack.js : 0.3.0
  • which browser and its version: IE 11 or Chrome 63.0.3239.84

Expected behaviour

Resize the widget to the nearest placeholder
untitled

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions