aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.accordion.js
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2009-03-18 10:25:55 +0000
committerRichard Worth <rdworth@gmail.com>2009-03-18 10:25:55 +0000
commit7b55667bf3e571a72533ea690ee5011819c79c40 (patch)
treefa6684a0d3d5341218b7d6695de21d886ca7ac1d /ui/ui.accordion.js
parent8120dfa0d02611a5c3dfc83192fa51115eab956b (diff)
downloadjquery-ui-7b55667bf3e571a72533ea690ee5011819c79c40.tar.gz
jquery-ui-7b55667bf3e571a72533ea690ee5011819c79c40.zip
Fixed #4331 - Accordion requires theme CSS to function in IE
Diffstat (limited to 'ui/ui.accordion.js')
-rw-r--r--ui/ui.accordion.js2
1 files changed, 1 insertions, 1 deletions
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';