yahoo / ember-gridstack

Ember components to build drag-and-drop multi-column grids powered by gridstack.js
https://yahoo.github.io/ember-gridstack/
Other
37 stars 29 forks source link

Item changes not properly propagating #61

Closed btecu closed 4 years ago

btecu commented 4 years ago

If an item gets updated (x, y, width ...) it nicely updates the UI. However, it appears that some internal state in the GridStack component is not updated.

Issue example here: https://github.com/btecu/ember-grid-bug

Press the Resize button and observe what happens, then try moving the second item.

btecu commented 4 years ago

How it currently works: Before

How it works after the fix (#62): After

btecu commented 4 years ago

The Resize button is supposed to set Apple width to 12 and the y to 1: https://github.com/btecu/ember-grid-bug/commit/f4e367d3bc17a1e1d7f0ee806625df1b2a16d7b3#diff-a05365d2d209c4b29941fef556b98597R15