diff --git a/app/transitions/explode.js b/app/transitions/explode.js index 04eebf11..ddbed024 100644 --- a/app/transitions/explode.js +++ b/app/transitions/explode.js @@ -60,8 +60,8 @@ function _explodePart(context, field, childContext, selector) { child = elt.find(selector); if (child.length > 0) { childOffset = child.offset(); - width = child.width(); - height = child.height(); + width = child.outerWidth(); + height = child.outerHeight(); newChild = child.clone(); // Hide the original element diff --git a/app/transitions/fly-to.js b/app/transitions/fly-to.js index 0ac41d91..d29d2a3d 100644 --- a/app/transitions/fly-to.js +++ b/app/transitions/fly-to.js @@ -14,8 +14,8 @@ export default function flyTo(opts={}) { var motion = { translateX: newOffset.left - oldOffset.left, translateY: newOffset.top - oldOffset.top, - width: this.newElement.width(), - height: this.newElement.height() + width: this.newElement.outerWidth(), + height: this.newElement.outerHeight() }; this.newElement.css({ visibility: 'hidden' });