Search and Top Navigation
#4100 closed bug (fixed)
Opened February 09, 2009 10:40AM UTC
Closed February 26, 2009 10:43AM UTC
Last modified March 03, 2009 08:47PM UTC
IE js error when autoHeight is false
Reported by: | kam99 | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.7 |
Component: | ui.accordion | Version: | 1.6rc6 |
Keywords: | IE accordion autoHeight js error | Cc: | alexey.koryakov@muranosoft.com |
Blocked by: | Blocking: |
Description
Tested against IE6, IE7.
Error: Invalid argument.
Accordion doesn't work if autoHeight is set to false.
$("#accordion").accordion({ clearStyle: true, autoHeight: false}); <div id="accordion"> <a href="#" class="accordionHeader">Header 1</a> <div class="accordionContent"> Container 1 <br /> Container 1 </div> <a href="#" class="accordionHeader">Header 2</a> <div class="accordionContent" > Container 2 </div> </div>
Quick fix I made locally:
before (n is NaN, cause error)
j.toShow[0].style[m.prop]=n+"px"
after
j.toShow[0].style[m.prop]=(isNaN(n)?0:n)+"px"
This issue has been fixed in the trunk.