Skip to content

Commit

Permalink
Accordion: only animate height and padding.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Jan 30, 2009
1 parent 1fc03ac commit 18b42f4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ui/ui.accordion.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -401,9 +401,7 @@ $.extend($.ui.accordion, {
overflow = options.toShow.css('overflow'), overflow = options.toShow.css('overflow'),
showProps = {}, showProps = {},
hideProps = {}, hideProps = {},
fxAttrs = [ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom", "borderTop", "borderBottom" ]; fxAttrs = [ "height", "paddingTop", "paddingBottom" ];
// border animations break IE (only tested in IE6)
($.browser.msie && fxAttrs.pop() && fxAttrs.pop());
$.each(fxAttrs, function(i, prop) { $.each(fxAttrs, function(i, prop) {
hideProps[prop] = 'hide'; hideProps[prop] = 'hide';
showProps[prop] = parseFloat(options.toShow.css(prop)); showProps[prop] = parseFloat(options.toShow.css(prop));
Expand Down

0 comments on commit 18b42f4

Please sign in to comment.