Open c2dev opened 9 years ago
Here is the problem:
Accordion is using the item
container to animate the height attribute. This turned out to be the least hacky solution to measure the height of the panel
without having to show and hide it really fast.
Solutions to measuring the height of the panel while it is disabled
are welcome.
I do not understand why measuring height is important here. Why not use jQuery methods slideDown
, slideUp
functions which do the same?
Yes, jQuery makes animating height very easy. But the animation is not smooth and this was one of the main reasons to make this module.
Is there a way to configure the accordion so that the item div isn't necessary? Primary reason being that in some cases it makes it impossible to make your code both valid and semantic. Like in the case of an FAQ list, which I believe should be marked up like so: