We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
box-sizing: border-box
1 parent 04ab6e0 commit de75b40Copy full SHA for de75b40
ui/accordion.js
@@ -516,6 +516,7 @@ return $.widget( "ui.accordion", {
516
var total, easing, duration,
517
that = this,
518
adjust = 0,
519
+ boxSizing = toShow.css( "box-sizing" ),
520
down = toShow.length &&
521
( !toHide.length || ( toShow.index() < toHide.index() ) ),
522
animate = this.options.animate || {},
@@ -558,7 +559,9 @@ return $.widget( "ui.accordion", {
558
559
step: function( now, fx ) {
560
fx.now = Math.round( now );
561
if ( fx.prop !== "height" ) {
- adjust += fx.now;
562
+ if ( boxSizing === "content-box" ) {
563
+ adjust += fx.now;
564
+ }
565
} else if ( that.options.heightStyle !== "content" ) {
566
fx.now = Math.round( total - toHide.outerHeight() - adjust );
567
adjust = 0;
0 commit comments