Fixed #4331 - Accordion requires theme CSS to function in IE

This commit is contained in:
Richard Worth 2009-03-18 10:25:55 +00:00
parent 8120dfa0d0
commit 7b55667bf3

View File

@ -423,7 +423,7 @@ $.extend($.ui.accordion, {
// fix width before calculating height of hidden element // fix width before calculating height of hidden element
var s = options.toShow; var s = options.toShow;
originalWidth = s[0].style.width; originalWidth = s[0].style.width;
s.width( parseInt(s.parent().width(),10) - parseInt(s.css("paddingLeft"),10) - parseInt(s.css("paddingRight"),10) - parseInt(s.css("borderLeftWidth"),10) - parseInt(s.css("borderRightWidth"),10) ); s.width( parseInt(s.parent().width(),10) - parseInt(s.css("paddingLeft"),10) - parseInt(s.css("paddingRight"),10) - (parseInt(s.css("borderLeftWidth"),10) || 0) - (parseInt(s.css("borderRightWidth"),10) || 0) );
$.each(fxAttrs, function(i, prop) { $.each(fxAttrs, function(i, prop) {
hideProps[prop] = 'hide'; hideProps[prop] = 'hide';