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

For the use-case of self re-sizing grid and keeping the dragging abiliti... #246

Open ghost opened 11 years ago

ghost commented 11 years ago

...es

Following the idea in the extension here: http://jsfiddle.net/nxmRr/30/

Once the container re-sizes the dragging will fail because the incorrect container_width value. I suggest always taking the container's width and not a pre-cached value (that is not always correct).