diff --git a/assets/js/src/shared/components/ui/stretch.js b/assets/js/src/shared/components/ui/stretch.js index e41529a..b58b541 100755 --- a/assets/js/src/shared/components/ui/stretch.js +++ b/assets/js/src/shared/components/ui/stretch.js @@ -49,7 +49,7 @@ Stretch = Components.create( { var width = rect.width; var left = rect.left; - this.el.style.width = window.innerWidth + 'px'; + this.el.style.width = document.body.clientWidth + 'px'; this.el.style.marginLeft = - left + 'px'; if ( this.options.retainContentWidth ) { @@ -93,4 +93,4 @@ $.fn.tailorStretch = function( options, callbacks ) { } ); }; -module.exports = Stretch; \ No newline at end of file +module.exports = Stretch;