Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When using jQuery update with newer versions of jQuery UI the accordion widget doesn't work if is applied to more than one field. Setting autoHeight: false for jQuery 1.8 and heightStyle: "content" for jQuery 1.9+ fixes it.
Comment | File | Size | Author |
---|---|---|---|
#1 | multiple_value_widget.patch | 411 bytes | hlykos |
Comments
Comment #1
hlykos CreditAttribution: hlykos commentedpatch
Comment #2
Chi CreditAttribution: Chi commentedCan you provide more information? I've tested it with jQuery 1.8.2 and jQuery UI 1.10.2 . It works for me without the patch.
Comment #3
hlykos CreditAttribution: hlykos commentedif more than one multivalue fields applies the accordion only the first one seems to work. The rest do not toggle to full height, they change their display attribute properly but the height remains 0.
So if there a multivalue image field with accordion on and a multivalue file field with accordion on at the same form only the image field will toggle correctly.
The problem was fixed with the patch. I use jQuery UI 1.8. Haven't tested with jQuery UI 1.9 and 1.10.
Comment #4
Bruno-2M CreditAttribution: Bruno-2M commentedFixed the problem for me with JQuery 1.9
Thanks
Comment #5
frobMore info was provided.
Comment #6
frobComment #7
stefanos.petrakis@gmail.comHello everyone,
Just tested this with the following configuration:
I could not reproduce the reported error (details). The only thing I noticed was that there was too much margin below each field. After applying the patch, this extra margin was gone.
I would like to commit the patch since it improves the rendering, but I need to close this ticket for now.
Cheers,
Stefanos
Comment #8
frobI don't understand this.
If you are planning on doing something about this at a later time then postponed is the correct status.
For a bit more context on this, add an accordion with 100 items some two screens high, and some small (less than a screen high).
Comment #9
frobAs per #8 in another issue.
Comment #10
stefanos.petrakis@gmail.com@frob: Thanks for the feedback. Since you gave more information about this, I will have another look. Attaching a screenshot would be great, if you find the time. And agreed, I will leave this as postponed (maintainer needs more info).