In jQuery 1.9.0
$( "#fullpageaccordion .questions" ).accordion({heightStyle: "content"});
In jQuery 1.8.2
You are correct--
$( "#fullpageaccordion .questions" ).accordion({autoHeight: false});
Reference
Accordion adjusting height of the panels in jquery
-
13-10-2022 - |
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.
Solution
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