Closed NiGhTTraX closed 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.
index.html
GridList.prototype._adjustHeightOfItems() checks for either:
GridList.prototype._adjustHeightOfItems()
data-autoheight
true
undefined
0
The problems lies in jquery.gridList.js which sets data-autoheight to false all the time.
jquery.gridList.js
false
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.
_adjustHeightOfItems()
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:data-autoheight
to betrue
ordata-autoheight
to beundefined
and the item height0
.The problems lies in
jquery.gridList.js
which setsdata-autoheight
tofalse
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 be0
.