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 c077e0a commit 4b017b4Copy full SHA for 4b017b4
ui/accordion.js
@@ -524,6 +524,7 @@ return $.widget( "ui.accordion", {
524
var total, easing, duration,
525
that = this,
526
adjust = 0,
527
+ boxSizing = toShow.css( "box-sizing" ),
528
down = toShow.length &&
529
( !toHide.length || ( toShow.index() < toHide.index() ) ),
530
animate = this.options.animate || {},
@@ -566,7 +567,9 @@ return $.widget( "ui.accordion", {
566
567
step: function( now, fx ) {
568
fx.now = Math.round( now );
569
if ( fx.prop !== "height" ) {
- adjust += fx.now;
570
+ if ( boxSizing === "content-box" ) {
571
+ adjust += fx.now;
572
+ }
573
} else if ( that.options.heightStyle !== "content" ) {
574
fx.now = Math.round( total - toHide.outerHeight() - adjust );
575
adjust = 0;
0 commit comments