Skip to content
Permalink
Browse files

Accordion: Fixed #7238 - Problem with accordion slide animation fixed…

… width calculation
  • Loading branch information...
MGaetan89 committed Nov 6, 2011
1 parent 416101b commit 124cf3cc6c9bf182563e2fe0663cdde497700f7b
Showing with 5 additions and 5 deletions.
  1. +5 −5 ui/jquery.ui.accordion.js
@@ -483,11 +483,11 @@ $.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 ) || 0 )
- ( parseInt( s.css( "borderRightWidth" ), 10) || 0 ) );
s.width( s.parent().width()
- parseFloat( s.css( "paddingLeft" ) )
- parseFloat( s.css( "paddingRight" ) )
- ( parseFloat( s.css( "borderLeftWidth" ) ) || 0 )
- ( parseFloat( s.css( "borderRightWidth" ) ) || 0 ) );

$.each( fxAttrs, function( i, prop ) {
hideProps[ prop ] = "hide";

1 comment on commit 124cf3c

@scottgonzalez

This comment has been minimized.

Copy link
Member

scottgonzalez commented on 124cf3c Dec 10, 2013

@MGaetan89 Can you please sign our CLA?

Please sign in to comment.
You can’t perform that action at this time.