jquery - Define a minimun height when collapsing in Bootstrap -
in bootstrap, want set height when collapses. want keep collapsible area shown using .collapse.in
class. when collapses won't set height zero.
before collapse:
after collapse:
update:
http://jsfiddle.net/r6eaw/1158/
css:
#collapseone{ min-height:60px }
jq:
$('#accordion').on('hidden.bs.collapse', function () { $('#collapseone').removeclass('collapse').css({ 'overflow': 'hidden', 'height': '60px' }) })
Comments
Post a Comment