Skip to content

Commit 900514a

Browse files
committed
Merge pull request jquery#517 from MGaetan89/bug_7238
Accordion: Fixed #7238 - Problem with accordion slide animation fixed wid
2 parents 416101b + 124cf3c commit 900514a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ui/jquery.ui.accordion.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -483,11 +483,11 @@ $.extend( $.ui.accordion, {
483483
// fix width before calculating height of hidden element
484484
var s = options.toShow;
485485
originalWidth = s[0].style.width;
486-
s.width( parseInt( s.parent().width(), 10 )
487-
- parseInt( s.css( "paddingLeft" ), 10 )
488-
- parseInt( s.css( "paddingRight" ), 10 )
489-
- ( parseInt( s.css( "borderLeftWidth" ), 10 ) || 0 )
490-
- ( parseInt( s.css( "borderRightWidth" ), 10) || 0 ) );
486+
s.width( s.parent().width()
487+
- parseFloat( s.css( "paddingLeft" ) )
488+
- parseFloat( s.css( "paddingRight" ) )
489+
- ( parseFloat( s.css( "borderLeftWidth" ) ) || 0 )
490+
- ( parseFloat( s.css( "borderRightWidth" ) ) || 0 ) );
491491

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

0 commit comments

Comments
 (0)