Skip to content

Commit

Permalink
Merge pull request #517 from MGaetan89/bug_7238
Browse files Browse the repository at this point in the history
Accordion: Fixed #7238 - Problem with accordion slide animation fixed wid
  • Loading branch information
scottgonzalez committed Nov 7, 2011
2 parents 416101b + 124cf3c commit 900514a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ui/jquery.ui.accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 900514a

Please sign in to comment.