r2307 - Fixed #4331 - Accordion requires theme CSS to function in IE
Author: rdworth
Date: Wed Mar 18 03:25:55 2009
New Revision: 2307
Modified:
trunk/ui/ui.accordion.js
Log:
Fixed #4331 - Accordion requires theme CSS to function in IE
Modified: trunk/ui/ui.accordion.js
==============================================================================
--- trunk/ui/ui.accordion.js (original)
+++ trunk/ui/ui.accordion.js Wed Mar 18 03:25:55 2009
@@ -423,7 +423,7 @@
// 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';