File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,9 @@ <h2>Accordion Group <br><small>(single open)</small></h2>
26
26
< section data-accordion >
27
27
< button data-control > Accordion 1</ button >
28
28
< div data-content >
29
- < article > Item</ article >
29
+ < article >
30
+ < textarea > </ textarea >
31
+ </ article >
30
32
< article data-accordion >
31
33
< button data-control > 2nd Level</ button >
32
34
< div data-content >
@@ -227,7 +229,7 @@ <h2>Defaults</h2>
227
229
© 2014 Victor Fernández / < a href ="http://vctrfrnndz.com/ "> @vctrfrnndz</ a > / < a href ="mailto:victor@vctrfrnndz.com "> email</ a > / < a href ="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=victor%2emin%2ejs%40gmail%2ecom&lc=US&item_name=jQuery%20Accordion%20Plugin&no_note=0¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest " > donate</ a >
228
230
</ section >
229
231
230
- < script src ="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js "> </ script >
232
+ < script src ="http: //ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js "> </ script >
231
233
< script type ="text/javascript " src ="js/jquery.accordion.js "> </ script >
232
234
< script type ="text/javascript ">
233
235
$ ( document ) . ready ( function ( ) {
Original file line number Diff line number Diff line change 192
192
193
193
requestAnimFrame ( function ( ) {
194
194
$content . css ( 'max-height' , $content . data ( 'oHeight' ) ) ;
195
+
196
+ // Reset max height and set height to auto to allow dynamic
197
+ // content sizing until the next accordion interaction
198
+ $content . css ( 'height' , 'auto' ) ;
199
+ $content . css ( 'max-height' , 'none' ) ;
195
200
} ) ;
196
201
197
202
$accordion . addClass ( 'open' ) ;
You can’t perform that action at this time.
0 commit comments