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.04k stars 1.2k forks source link

Getting height of Gridster instance #557

Open renebrain opened 8 years ago

renebrain commented 8 years ago

I made gridster responsive for one of my projects (kinda like the way gristack does it). But i have one problem. I have to wipe the height when i go into responsive mode. when i comeback into unresponsive mode my ul has no height anymore. I assume gridster is calculating the height by himself based upon the widgets it contains and then sets it with javascript. i would like to get the javascript height and set it back to the ul manually. any ideas? i tried out the following commands, and sometimes he did reinitialize and sometimes not. i need a more sophisticated method to actually give the ul back its size. dragging one element is also resetting the height of gridster but also not suitable for me.

grid.enable(); grid.enable_resize(); grid.disable(); grid.disable_resize();

renebrain commented 8 years ago

Found it: set_dom_grid_height() is the function i was searching. This issue can be closed then.