In my UI I have an accordion setup like this:
Section 1
...content...
//
Turning off auto will work... (with any string besides auto or fill) such as the solution telling to use "panel". But...
That is the same as putting in any garbage string for "heightStyle"
. The "heightStyle"
you are looking for is "content"
.
(values for option "heightStyle"
in jQuery UI 1.12)
"auto"
: All panels will be set to the height of the tallest panel."fill"
: Expand to the available height based on the accordion's parent height."content"
: Each panel will be only as tall as its content.Example: https://jsfiddle.net/qkxyodpq/5/
Hope that helps.