JQUERY UI Accordion Resize on Window Resize?
Posted
by nobosh
on Stack Overflow
See other posts from Stack Overflow
or by nobosh
Published on 2010-03-11T16:53:29Z
Indexed on
2010/03/11
17:49 UTC
Read the original article
Hit count: 883
I'm using the JQUERY UI Accordion module:
<script type="text/javascript">
$(function() {
$("#sidebar_column_accordion").accordion({
fillSpace: true,
icons: { 'header': 'ui-icon-plus', 'headerSelected': 'ui-icon-minus' }
});
});
</script>
By using the fillSpace option, the accordion takes up the entire height of the window which I want. Problem is it calculate the height on page load, and if the user resizes their browser, it does not adjust...
Is there a way to have the accordion recalculate the height/size when the browser window is resized?
Thanks
© Stack Overflow or respective owner