aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGaëtan Muller <m.gaetan89@gmail.com>2011-11-06 15:21:22 +0100
committerScott González <scott.gonzalez@gmail.com>2011-11-07 07:13:28 -0500
commit9a87c1a72ea298170f4b9bffcecdb4d80ee4b5cc (patch)
tree4d81b4dfc1459c4e1178217eed27ecbfcffbc855
parent0fcf3d8e5e0bf8e8459c5c95d7733958eb68a5d3 (diff)
downloadjquery-ui-9a87c1a72ea298170f4b9bffcecdb4d80ee4b5cc.tar.gz
jquery-ui-9a87c1a72ea298170f4b9bffcecdb4d80ee4b5cc.zip
Accordion: Fixed #7238 - Problem with accordion slide animation fixed width calculation
(cherry picked from commit 124cf3cc6c9bf182563e2fe0663cdde497700f7b)
-rw-r--r--ui/jquery.ui.accordion.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js
index 9419089b5..c20097e70 100644
--- a/ui/jquery.ui.accordion.js
+++ b/ui/jquery.ui.accordion.js
@@ -550,11 +550,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";