diff options
author | Gaëtan Muller <m.gaetan89@gmail.com> | 2011-11-06 15:21:22 +0100 |
---|---|---|
committer | Gaëtan Muller <m.gaetan89@gmail.com> | 2011-11-06 15:21:22 +0100 |
commit | 124cf3cc6c9bf182563e2fe0663cdde497700f7b (patch) | |
tree | 69313b6364d3c1c0a8687c3e48f17f2cbc6d6574 | |
parent | 416101b4647e7e958ad755826583b6e2524e848d (diff) | |
download | jquery-ui-124cf3cc6c9bf182563e2fe0663cdde497700f7b.tar.gz jquery-ui-124cf3cc6c9bf182563e2fe0663cdde497700f7b.zip |
Accordion: Fixed #7238 - Problem with accordion slide animation fixed width calculation
-rw-r--r-- | ui/jquery.ui.accordion.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js index 580009d33..6eb496a43 100644 --- a/ui/jquery.ui.accordion.js +++ b/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"; |