mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Accordion: Use .css() to clear the height, instead of .height().
(cherry picked from commit 2553d61384
)
This commit is contained in:
parent
5046bb99aa
commit
3175d7d1c2
2
ui/jquery.ui.accordion.js
vendored
2
ui/jquery.ui.accordion.js
vendored
@ -325,7 +325,7 @@ $.widget( "ui.accordion", {
|
|||||||
maxHeight = 0;
|
maxHeight = 0;
|
||||||
this.headers.next()
|
this.headers.next()
|
||||||
.each(function() {
|
.each(function() {
|
||||||
maxHeight = Math.max( maxHeight, $( this ).height( "" ).height() );
|
maxHeight = Math.max( maxHeight, $( this ).css( "height", "" ).height() );
|
||||||
})
|
})
|
||||||
.height( maxHeight );
|
.height( maxHeight );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user