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

Gridster auto resize by content height #547

Open antonradev opened 9 years ago

antonradev commented 9 years ago

Hi there!

I am trying to append content inside a Gridster widget but with no luck for two days already. I tried with:

.resize_widget( $widget, [size_x], [size_y], [reposition], [callback] )

but the sizes x and y only accept numbers - its default re-sizing mechanism and they are not pixels. They are some sort of steps. If I increment with +1 the size_y the widget is re-sized more than needed and again with its own mechanism. I was also looking for a way to reduce this step. No luck. I also tried to change the widget height, min-height, etc. It was not re-sizing. Do you have any suggestions, ideas? Thank you in advanced!