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 - |
Pregunta
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.
Solución
Otros consejos
Try this...
$('#accordion').accordion({
collapsible: true,
autoHeight: false
});
Or try this to clear height...
$('#accordion').accordion({
clearStyle: true
});
Note: autoHeight doesnt work with clearStyle
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow