jquery ui - Unbinding Masonry -


scenario:

i'm working knockoutjs, jquery ui's sortable , masonry. use knockout display list of cards, masonry arrange cards properly, , sortable sorting cards.

the cards of similar size, i'll introducing different sizes later on surely need masonry me arrange them.

i'm using customized bindinghandler function sortable when user sorts cards, item's position gets updated in knockout observablearray.

problem:

since knockout sortable function removes item last position , puts new position, masonry messes , somehow sortable not functions properly. discovered if float left cards without using masonry, sortable works fine.

i plan undo masonry @ start of sortable, , put @ stop of sortable. don't know how unbind masonry. there way? or @ least way working.

here's prototype of i'm trying do: http://jsbin.com/avujom/9/edit

you use masonry's destroy remove masonry. removes masonry functionality completely. return element pre-initialized state. , create masonry element when needed msnry = new masonry( container );. use layout method.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -