Question

I am trying to stop autoresize accordion panel by using this script

$( "#fullpageaccordion .questions" ).accordion({autoHeight: false});

which does not work - accordion adjust the content area size by its largest content. What I am doing wrong? Thanks in advance.

Was it helpful?

Solution

In jQuery 1.9.0
$( "#fullpageaccordion .questions" ).accordion({heightStyle: "content"});
In jQuery 1.8.2
You are correct--
$( "#fullpageaccordion .questions" ).accordion({autoHeight: false});
Reference

OTHER TIPS

Try this...

$('#accordion').accordion({
   collapsible: true,
   autoHeight: false
});

Or try this to clear height...

$('#accordion').accordion({ 
   clearStyle: true 
});

Note: autoHeight doesnt work with clearStyle

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top