]> source.dussan.org Git - jquery-ui.git/commitdiff
Fixed #4331 - Accordion requires theme CSS to function in IE
authorRichard Worth <rdworth@gmail.com>
Wed, 18 Mar 2009 10:25:55 +0000 (10:25 +0000)
committerRichard Worth <rdworth@gmail.com>
Wed, 18 Mar 2009 10:25:55 +0000 (10:25 +0000)
ui/ui.accordion.js

index 4059e9a96ecf662fed7fb2a4cd8b9bb5c4cbf8ab..0a625e5d33ba0721224f6527be73e50878432209 100644 (file)
@@ -423,7 +423,7 @@ $.extend($.ui.accordion, {
                        // fix width before calculating height of hidden element
                        var s = options.toShow;
                        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) {
                                hideProps[prop] = 'hide';