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

Get the width of gridster ul after resize #279

Open opportunex opened 10 years ago

opportunex commented 10 years ago

I am trying to use gridster inside a "stretchy div"... one that will expand with the inner child elements (gridster li items). After much tribulation in CSS - to no avail, I figured I could dynamically resize the outer container with jQuery. I know that will work if I can get the width of the items, but I'm having a heck of a time getting the width of the gridster ul after resize. Any ideas?? Here's a fiddle: http://jsfiddle.net/opportunex/3qarB/