ducksboard / gridster.js

gridster.js is a jQuery plugin that makes building intuitive draggable layouts from elements spanning multiple columns
http://gridster.net/
MIT License
6.03k stars 1.2k forks source link

destroy() and init() duplicate gridster events #527

Closed ghost closed 9 years ago

ghost commented 9 years ago

Hi all, I am using destroy and init when the window hits certain breakpoints to make the grid responsive but with fixed sizes, but after the init, all events are duplicated, is this a know bug, is there a workaround?

mdconaway commented 9 years ago

I have a fix for this. I will generate a pull request to fix your issue.

mdconaway commented 9 years ago

Also, if you need the fix ASAP, I have a patched version of gridster contained within my project here: https://github.com/mdconaway/vchat

You can find it in the application "vendor/lib" folder.

ghost commented 9 years ago

Thank you, this solved a big problem for us! With this, I've managed to make a responsive grid that changes the col number dynamically if as they fit the screen :)

Qlipoth commented 8 years ago

mdconaway, its very very very COOOOOOOOOOOOOOOOOL !!!