This is a deficiency with the Accordion widget - it does NOT have a
'resize' method. Currently the only way to resize an accordion is to
'destroy' it and then re-'create' it. It's an ugly hack, but I'm sure
it will be updated soon though.
I submitted code for such an update weeks ago...
UPDATE for ui.accordion widget - size() method:
http://groups.google.com/group/jquery-ui/browse_thread/thread/f4b963fc7f387a56HOWEVER, there is a solution... To use an accordion inside a layout
and have it 'auto-resize', download the patched accordion version I
created for my own use:
http://layout.jquery-dev.net/download/ui-components/ui.accordion.resizable.jsThis is identical to the original widget, except that it has a
'resize' method.
(I changed the method name from 'size' to 'resize')
You can see an EXAMPLE of an accordion inside a layout here:
http://layout.jquery-dev.net/demos/accordion.htmlView the source code to see how to add a callback method to the 'west-
pane' to auto-resize the accordion.