r1918 - trunk/ui

r1918 - trunk/ui


Author: joern.zaefferer
Date: Fri Jan 30 13:40:34 2009
New Revision: 1918
Modified:
trunk/ui/ui.accordion.js
Log:
accordion: partial fix for #4011
Modified: trunk/ui/ui.accordion.js
==============================================================================
--- trunk/ui/ui.accordion.js    (original)
+++ trunk/ui/ui.accordion.js    Fri Jan 30 13:40:34 2009
@@ -394,10 +394,7 @@
                options.toShow.animate({height: "show"}, options);
                return;
            }
-            var hideHeight = options.toHide.height(),
-                showHeight = options.toShow.height(),
-                difference = showHeight / hideHeight,
-                overflow = options.toShow.css('overflow'),
+            var overflow = options.toShow.css('overflow'),
                showProps = {},
                hideProps = {},
                fxAttrs = [ "height", "paddingTop", "paddingBottom" ];
@@ -405,6 +402,7 @@
                hideProps[prop] = 'hide';
                showProps[prop] = parseFloat(options.toShow.css(prop));
            });
+            showProps.height = options.toShow.height();
            options.toShow.css({ height: 0, overflow: 'hidden' }).show();
            
options.toHide.filter(":hidden").each(options.complete).end().filter(":visible").animate(hideProps,{
                step: function(now, settings) {