no image can be wider than 33%
This commit is contained in:
parent
6af56953be
commit
816c1cab53
|
@ -27,8 +27,8 @@ jQuery(document).on('click', '#pack', () ->
|
||||||
fr.onload = ((aImg) ->
|
fr.onload = ((aImg) ->
|
||||||
(e) ->
|
(e) ->
|
||||||
aImg.src = e.target.result
|
aImg.src = e.target.result
|
||||||
if jQuery(aImg).width() > jQuery("#masonryslide").width()
|
if jQuery(aImg).width() > (jQuery("#masonryslide").width() / 3)
|
||||||
jQuery(aImg).width("100%")
|
jQuery(aImg).width("33%")
|
||||||
grid.layout()
|
grid.layout()
|
||||||
resolve()
|
resolve()
|
||||||
)(img)
|
)(img)
|
||||||
|
|
Loading…
Reference in a new issue