hootsuite / grid

Drag and drop library for two-dimensional, resizable and responsive lists
http://hootsuite.github.io/grid/
Apache License 2.0
3.57k stars 279 forks source link

Auto height items in the demo have height 0px #12

Closed NiGhTTraX closed 10 years ago

NiGhTTraX commented 10 years ago

In the index.html demo, widgets with height 0 (which should fill up the entire available height) don't get their height properly calculated.

GridList.prototype._adjustHeightOfItems() checks for either:

The problems lies in jquery.gridList.js which sets data-autoheight to false all the time.

Solution

Don't set data-autoheight and let _adjustHeightOfItems() do its thing. If it's not set it will look for the item height to be 0.