diff --git a/public_html/js/Presenters/PostContentPresenter.js b/public_html/js/Presenters/PostContentPresenter.js index 9ddd7966..4cb93778 100644 --- a/public_html/js/Presenters/PostContentPresenter.js +++ b/public_html/js/Presenters/PostContentPresenter.js @@ -36,6 +36,9 @@ App.Presenters.PostContentPresenter = function( var ratio = originalWidth / originalHeight; var height = jQuery(window).height() - $wrapper.offset().top; var width = (height - 10) * ratio; + if (width > originalWidth) { + width = originalWidth; + } $wrapper.css({maxWidth: width + 'px', width: ''}); }, 'fit-width': function($wrapper) {