mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Merge pull request #517 from MGaetan89/bug_7238
Accordion: Fixed #7238 - Problem with accordion slide animation fixed wid
This commit is contained in:
commit
900514ad0f
10
ui/jquery.ui.accordion.js
vendored
10
ui/jquery.ui.accordion.js
vendored
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user