문제

Check this site and click on view button at the middle of the screen

When you click on view button images overlapping on each other.

then if you re-size browser it will set automatically as we want.

We have tried to reload using below on view button click

$('#menu').click(function() {
    $('.primary-content').masonry('reload'); /* not working */
    $("#cont").show();
    alert ( "abc" );
    $('#test').animate({
        height: 'toggle'        
    }, 500, function() {});
});
도움이 되었습니까?

해결책

working link (issue solved link) http://www.ytank.com/tourapp/swipe/demosnew/ss02.html

ref link https://github.com/desandro/masonry/issues/211

need to initialize Masonry before you use Masonry methods.

$('.hero-masonry')
  // initialize Masonry
  .masonry()
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top