Accordion: height is sometimes wrong if calculated while accordion is closed
|Reported by:||apushak||Owned by:|
If an accordion height is calculated while the accordion is closed, in some cases the calculated height is too short, so when the accordion opens, one or more lines don't show and a vertical scroll bar appears.
I've tested and seen the bug in the following browsers:
- Chrome 41.0.2272.118 m
- Firefox 37.0.1
- IE 11.0.9600.17690
- jquery 2.1.3 & jquery-ui 1.11.4
- jquery 2.0.2 & jquery-ui 1.10.3
- Windows 8.1
Here is a jsFiddle where you can see this issue http://jsfiddle.net/apushak/64jmafkz/
I've determined that this happens when the height of the measured element has display: none instead of display: block. I will be submitting a pull request with a fix soon.
Change History (3)
comment:2 Changed 23 months ago by tj.vantoll
- Status changed from new to open
- Summary changed from Accordion height is sometimes wrong if calculated while accordion is closed to Accordion: height is sometimes wrong if calculated while accordion is closed