mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
Accordion: Fixed #7238 - Problem with accordion slide animation fixed width calculation
(cherry picked from commit 124cf3cc6c
)
This commit is contained in:
parent
0fcf3d8e5e
commit
9a87c1a72e
10
ui/jquery.ui.accordion.js
vendored
10
ui/jquery.ui.accordion.js
vendored
@ -550,11 +550,11 @@ $.extend( $.ui.accordion, {
|
|||||||
// fix width before calculating height of hidden element
|
// fix width before calculating height of hidden element
|
||||||
var s = options.toShow;
|
var s = options.toShow;
|
||||||
originalWidth = s[0].style.width;
|
originalWidth = s[0].style.width;
|
||||||
s.width( parseInt( s.parent().width(), 10 )
|
s.width( s.parent().width()
|
||||||
- parseInt( s.css( "paddingLeft" ), 10 )
|
- parseFloat( s.css( "paddingLeft" ) )
|
||||||
- parseInt( s.css( "paddingRight" ), 10 )
|
- parseFloat( s.css( "paddingRight" ) )
|
||||||
- ( parseInt( s.css( "borderLeftWidth" ), 10 ) || 0 )
|
- ( parseFloat( s.css( "borderLeftWidth" ) ) || 0 )
|
||||||
- ( parseInt( s.css( "borderRightWidth" ), 10) || 0 ) );
|
- ( parseFloat( s.css( "borderRightWidth" ) ) || 0 ) );
|
||||||
|
|
||||||
$.each( fxAttrs, function( i, prop ) {
|
$.each( fxAttrs, function( i, prop ) {
|
||||||
hideProps[ prop ] = "hide";
|
hideProps[ prop ] = "hide";
|
||||||
|
Loading…
Reference in New Issue
Block a user