#4712 closed bug (notabug)
clearStyle option not being respected when opening the initial accordion box
Reported by: | ken.sykora | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | ui.accordion | Version: | 1.7.2 |
Keywords: | clearStyle | Cc: | |
Blocked by: | Blocking: |
Description
When you use the option clearStyle and allow the accordion to open a default section, it leaves the height information in the style attribute. Clicking another accordion header and then going back to the originally selected header clears the style correctly. I would expect that the clearStyle option would be used when setting the initial accordion box selection.
See the attached files.
Picture 4: firebug showing the height style property on the initial selected div element Picture 5: firbug showing the same div element after the user clicks another section and then back into the initially selected section
Attachments (1)
Change History (3)
Changed 14 years ago by
Attachment: | clearStyle-bug.zip added |
---|
comment:1 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Combining (the default) autoHeight: true with clearStyle: true doesn't make much sene (the API shouldn't allow that combination in the first place). With autoHeight: true, the height is set on init, with clearStyle: true that would be removed again. Just set autoHeight: false instead.
reproducible bug