Response title
This is preview!
1- force the accordion to be visible in the current DOM before making the autoHeight calculation process.
2- clone the accordion somewhere in the DOM, make the clone visible, make the calculation on the clone, remove the clone, set the maxHeight value in the accordion
I don't see how this proposal can be done without interacting with the other plugins. It will require to make the parent (tabs, accordion, ...) showing properly the part where is the element. In this case, you will tell me again this:That's a lot of work since you have to traverse up the DOM finding every element that is causing the accordion to be hidden. This probably works, but isn't ideal.
Basically the question is : find a solution to a problem due to interaction between widgets (parent-children situation in this case) but your solution should not interact with any other widget ... It could be hard to find one without any kind of interaction.In order to find a valid solution, you have to find a way to make this work without interacting with any other plugins.
if you try the first partial fix, the accordions work well even when they are hidden (by any plugins), the only problem is that the autoHeight option is not taken into account. From my point of view it's better than nothing.The problem is that accordions don't work if initialized while hidden
If the external container plugin is not working well because this container plugin doesn't respect the event rules of jquery ui library it 's not really our problem.We cannot use a solution that only works if the plugin is inside another jQuery UI plugin.
© 2013 jQuery Foundation
Sponsored by and others.