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) ->
|
||||
(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)
|
||||
|
|
Loading…
Reference in a new issue