diff --git a/src/js/ZoomPane.js b/src/js/ZoomPane.js index 38ac016c..9cf4b0d6 100644 --- a/src/js/ZoomPane.js +++ b/src/js/ZoomPane.js @@ -243,7 +243,8 @@ export default class ZoomPane { removeClasses(this.el, this.closingClasses); removeClasses(this.el, this.inlineClasses); - this.el.style = ""; + this.el.style.left = ""; + this.el.style.top = ""; // The window could have been resized above or below `inline` // limits since the ZoomPane was shown. Because of this, we