17

I am adding grids using the 'add_widget' method of Gridster. The widget is successfully added, but the unordered list (ul) width is smaller then its contents.

Can anybody tell me how I can resize the height and width in Gridster according to the content.

StuperUser
  • 10,555
  • 13
  • 78
  • 137
neooo
  • 241
  • 1
  • 4
  • 11
  • Can you not use the 'resize_widget' method? You might be able to use that along with supplying the width/height based on the containing elements dimensions. i.e. $(element).parent().width() or .height() and resize the widget to those? – Jamie Mar 13 '15 at 14:36
  • OP, any news regarding this? – Cos Jan 17 '16 at 14:03

1 Answers1

0

One thing I did a couple years back was to recreate the style via javascript and then replace the old with the new one. You'll also want to set {autogenerate_stylesheet_opt: false}. Hope this helps!

Reference: http://gridster.net/#autogenerate_stylesheet_opt

Leland Kwong
  • 323
  • 1
  • 3
  • 6