diff --git a/js/main.coffee b/js/main.coffee index d9fe98f..9e5adb3 100644 --- a/js/main.coffee +++ b/js/main.coffee @@ -27,8 +27,8 @@ jQuery(document).on('click', '#pack', () -> fr.onload = ((aImg) -> (e) -> aImg.src = e.target.result - if jQuery(aImg).width() > jQuery("#masonryslide").width() - jQuery(aImg).width("100%") + if jQuery(aImg).width() > (jQuery("#masonryslide").width() / 3) + jQuery(aImg).width("33%") grid.layout() resolve() )(img)