Skip to content

Conversation

@roborto444
Copy link
Contributor

@roborto444 roborto444 commented Feb 19, 2018

Frequent Transient Bug when moving or resizing
issue-805 - fix node being added to grid more than once after being dragged out of bounds

Description of issue

After a grid item was dragged out of bounds there were extra node being added to the grid. This caused the node to get stuck.
See video: https://youtu.be/QJj6hi7lnDU.

Solution:
Node only gets re-added once, after being dragged out of bounds. Set "node._temporaryRemoved" to false when adding node back into grid the first time. This prevents multiple calls to addNode().

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 69.553% when pulling 71615d0 on roborto444:issue-805 into 644f3ca on gridstack:develop.

@roborto444
Copy link
Contributor Author

Why does this fail?

@radiolips
Copy link
Member

@roborto444 don't worry. We'll get more code coverage soon, but for the time being, a 0.07% drop is perfectly acceptable.

@radiolips radiolips merged commit d6590d6 into gridstack:develop Feb 19, 2018
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

Successfully merging this pull request may close these issues.

3 participants