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/f4b963fc7f387a56

HOWEVER, 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.js

This 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.html

View the source code to see how to add a callback method to the 'west-
pane' to auto-resize the accordion.

On Nov 25, 5:33 am, Tud <[EMAIL PROTECTED]> wrote:
> I'm a newbie with jQueriUI and I'd like using accordion widget with
> UI.layout widget (http://layout.jquery-dev.net).
> the problem is during resize of UI.layout panels, the accordion
> doesn't resize automatically but UI.layout has a onresize trigger. I
> don't find a method for resize the accordion. Any suggestion?
> Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to