From 7b55667bf3e571a72533ea690ee5011819c79c40 Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Wed, 18 Mar 2009 10:25:55 +0000 Subject: [PATCH] Fixed #4331 - Accordion requires theme CSS to function in IE --- ui/ui.accordion.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui.accordion.js b/ui/ui.accordion.js index 4059e9a96..0a625e5d3 100644 --- a/ui/ui.accordion.js +++ b/ui/ui.accordion.js @@ -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'; -- 2.39.5