jquery accordion height

mmk_open picture mmk_open · Jun 16, 2011 · Viewed 29.7k times · Source

I have two accordion.

Accordion 1 : Router Info(contains gridRouter)

Accordion 2 : UNC Info(contains gridUNC)

If the gridRouter contains 2 records and gridUNC contains 30 records, the accordion 1 takes space for 30 records (not for 2 records)

Answer

Maciej Gurban picture Maciej Gurban · Feb 14, 2013

As of jQuery UI 1.10 the 'autoHeight' attribute has been deprecated. To achieve the same effect in the new version use heightStyle: "content"

See an example: http://jqueryui.com/accordion/#no-auto-height