Skip to content
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.

New items being stack one below previous item #118

Open
tonypine opened this issue Mar 19, 2018 · 0 comments
Open

New items being stack one below previous item #118

tonypine opened this issue Mar 19, 2018 · 0 comments

Comments

@tonypine
Copy link

I'm trying to handle add and remove action, the approach that I'm using right is this:

this.addNewItem()
this.$el.gridList({
  direction: 'vertical',
  lanes: 12
})
this.$el.gridList('resize')

In the addNewItem I just append a new element in the DOM to the grid element. Then I reinitialize the grid, and call a resize.

The behavior is awkward, I have to call resize several times to the grid organize itself correctly, that in my mind would be adding new elements from the left to right row by row.

Do someone have any tip on how to get this to work?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant